/* Global Variables */
:root {
    --primary-color: #D4AF37;
    /* Gold */
    --primary-hover: #F2C94C;
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(5, 5, 5, 0.6);
    /* Dark glass */
    --footer-bg: #000;
    --border-color: rgba(212, 175, 55, 0.2);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --nav-height: 80px;
    --transition: all 0.3s ease;
    --divider-color: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

[data-theme="light"] {
    --bg-color: #f4f4f4;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Light glass */
    --footer-bg: #e0e0e0;
    --border-color: rgba(212, 175, 55, 0.4);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header Fix */
header {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
}

header.scrolled {
    background: var(--glass-bg);
    /* Maintain theme color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer Fix */
footer {
    background: var(--footer-bg);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

/* Specific Light Mode Header Override */
[data-theme="light"] header,
[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    /* White glass */
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="light"] footer {
    background: #f4f4f4;
    /* Light grey/white for footer */
    color: #1a1a1a;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- Redesigned Buttons --- */
.btn {
    position: relative;
    padding: 14px 36px;
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
}

/* Button Internal Shine Animation */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* --- Section Alignment & Dividers --- */
.section {
    position: relative;
    /* For divider positioning */
    padding: 120px 0;
    /* More breathing room */
}

/* Gold Divider Line */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--divider-color);
    opacity: 0.5;
}

.container {
    padding: 0 40px;
    /* Uniform padding */
}

/* Orbs Background for About Section */
#about {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.orb-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Links in Text */
a.text-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: 0.3s;
}

a.text-link:hover {
    border-bottom-style: solid;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Contact Button Group (New) */
.contact-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    /* Center them */
}

@media (max-width: 768px) {
    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Header & Glassmorphism */
header {
    position: fixed;
    top: 20px;
    /* Floating effect */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: rgba(5, 5, 5, 0.6);
    /* More transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50px;
    /* Capsule shape */
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header.scrolled {
    width: 95%;
    top: 10px;
    background: rgba(5, 5, 5, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
    /* Space inside capsule */
}

.logo {
    font-size: 1.5rem;
    color: var(--text-color);
}

.logo .dot {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
    color: var(--primary-color);
}

nav a::before {
    display: none;
    /* Removed underline */
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

/* Links in Text - Fix as requested */
a.text-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: none !important;
    /* Force remove border */
    transition: 0.3s;
}

a.text-link:hover {
    text-shadow: 0 0 10px var(--primary-color);
    text-decoration: none !important;
    border: none !important;
}

/* CV Button (Header) */
.btn-sm-cv {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-sm-cv:hover {
    background: var(--primary-color);
    color: #000;
}

/* Compact Timestamp Header */
.timeline-header.compact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.timeline-header.compact-header div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-header.compact-header h3 {
    margin: 0;
}

.timeline-header.compact-header .company {
    font-size: 1rem;
    opacity: 0.9;
}

/* Certifications Section same as Education Grid */
#certifications .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Clickable Certificate Cards */
a.clickable-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

a.clickable-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

a.clickable-card .year {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 10px;
    display: block;
    font-weight: 500;
}

/* Date Wrapper & Duration Badge */
.date-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.duration-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }
}

/* Contact Info Items as Links */
a.info-item {
    text-decoration: none;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    /* Space for header */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.title {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.summary {
    max-width: 550px;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

/* Hero Image - Minimal */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper {
    position: relative;
}

.img-frame {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    animation: morph 8s ease-in-out infinite;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* About Section Revamp */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-text-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    display: flex;
    flex-direction: column;
}

.info-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-box .value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.value.email-val {
    word-break: break-all;
    font-size: 0.9rem;
}

/* About Visuals */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.stat-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.stat-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.timeline-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.timeline-header .company {
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-header .date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.job-details {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--text-muted);
}

.job-details li {
    margin-bottom: 5px;
}

/* Skills Grid */
.skills-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* --- Enhanced Animations & Hover Effects --- */

/* Button Shine Effect */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Social Icons Pulse & Glow */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Navbar Links Hover - glow line */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Header Controls Spin */
.controls button:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Skill Cards - Floating & Border Glow */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    /* Added for pseudo-elements */
    overflow: hidden;
    /* Added for pseudo-elements */
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.skill-card:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    /* Added */
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
    transition: transform 0.5s ease;
    /* Added */
}

.skill-card:hover .skill-icon {
    color: #000;
    transform: scale(1.2) rotateY(180deg);
    /* Added */
}

/* Floating WhatsApp Pulse Ripple */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: var(--transition);
    animation: simpleFloat 3s ease-in-out infinite;
    /* Added */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp::before,
.floating-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    animation: ripple 2s infinite;
}

.floating-whatsapp::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }

    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
    }
}

@keyframes simpleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Image Frame Hover */
.img-frame {
    transition: transform 0.5s ease;
}

.img-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

/* Contact Info Icons */
.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    /* Added */
}

.info-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.info-item:hover i {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

/* Footer Socials */
.footer-social a {
    color: var(--text-muted);
    margin: 0 10px;
    display: inline-block;
    /* Added */
    transition: transform 0.3s;
    /* Added */
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
    /* Added */
    text-shadow: 0 0 10px var(--primary-color);
    /* Added */
}

/* Education */
.edu-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.edu-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.edu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.edu-card .institute {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.edu-card .year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.info-item p {
    margin: 0;
    color: var(--text-muted);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text-color);
    padding: 10px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--primary-color);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Floating Buttons */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: #000;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    color: var(--text-muted);
}

.footer-social {
    margin-top: 10px;
    font-size: 1.2rem;
}

.footer-social a {
    color: var(--text-muted);
    margin: 0 10px;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
        /* Significantly reduced to shorten page */
    }

    .header-content {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border-top: 1px solid var(--border-color);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 50px;
        height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-image {
        margin-bottom: 20px;
    }

    .img-frame {
        width: 260px;
        height: 260px;
    }

    .hero-text {
        padding: 0 15px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Skills Grid Compact for Mobile */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 15px;
    }

    .skill-card {
        padding: 15px;
        /* Compact */
    }

    .skill-icon {
        font-size: 2rem;
        /* Smaller icon */
        margin-bottom: 10px;
    }

    .skill-card h4 {
        font-size: 0.9rem;
    }

    /* Timeline - Enhanced Vertical Layout for Mobile (Reverted from Grid) */
    .timeline {
        display: block;
        /* Back to block */
        position: relative;
        padding-left: 10px;
    }

    .timeline::after {
        display: block;
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;
        width: 2px;
        background: var(--primary-color);
        opacity: 0.3;
    }

    .timeline-item {
        position: relative;
        padding-left: 45px;
        margin-bottom: 40px;
    }

    .timeline-dot {
        display: block;
        position: absolute;
        top: 0;
        left: 11px;
        width: 20px;
        height: 20px;
        background: var(--primary-color);
        border-radius: 50%;
        border: 3px solid var(--bg-color);
        /* Contrast border */
        z-index: 1;
    }

    .timeline-content {
        padding: 25px;
        height: auto;
        border-left: 3px solid var(--primary-color);
        /* Accent accent */
        background: linear-gradient(145deg, var(--card-bg), rgba(0, 0, 0, 0.2));
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
    }

    .timeline-header h3 {
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .job-details {
        font-size: 0.9rem;
        padding-left: 0;
        /* Removed padding-left as it's now part of content */
        line-height: 1.6;
    }

    /* Education/Cert Grid (Kept as Grid) */
    #education .education-grid,
    #certifications .education-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 Columns */
        gap: 10px;
    }

    .edu-card {
        padding: 15px;
        min-height: 100px;
        /* Uniform look */
    }

    .edu-card h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .edu-card .institute {
        font-size: 0.8rem;
    }

    .edu-card .year {
        font-size: 0.75rem;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* Particles Class (for JS) */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

/* AOS Animations Classes */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: 0.8s;
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: 0.8s;
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: 0.8s;
}

[data-aos="flip-left"] {
    opacity: 0;
    transform: rotateY(90deg);
    transition: 0.8s;
}

.aos-animate {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}