:root {
    --bg-black: #050505;
    --bg-card: #0a0a0a;
    --bg-alt: #080808;
    --accent-primary: #4169E1; /* Royal Blue */
    --accent-secondary: #E8401C; /* WD Logo Red-Orange */
    --accent-mixed: #8A2BE2; /* Blend intermediate to avoid muddy colors */
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --logo-bg: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.light-mode {
    --bg-black: #ffffff;
    --bg-card: #f9fbfd;
    --bg-alt: #f0f4f8;
    --text-white: #111111;
    --text-gray: #555555;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --logo-bg: #f0f4f8;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

span {
    color: var(--accent-secondary);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .theme-toggle {
    background: #fff0ed;
    border-color: #ffccc4;
    color: var(--accent-secondary);
}

body.light-mode .theme-toggle:hover {
    background: #d9e8ff;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.logo span {
    font-family: 'Satisfy', cursive;
    color: var(--accent-primary);
    font-size: 2.5rem;
    font-weight: 400;
    margin-left: -5px;
}

.logo-img {
    height: 45px;
    width: 140px;
    object-fit: contain;
    object-position: center;
    background: var(--logo-bg);
    border-radius: 6px;
    padding: 5px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.mobile-nav-logo .logo-img {
    height: 32px;
    width: 110px;
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 3px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Floating Side Navigation --- */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 1.5rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.side-nav a {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    border-radius: 50%;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

.side-nav a span {
    display: none;
    color: var(--text-white);
}

.side-nav a i {
    color: var(--accent-secondary);
    transition: var(--transition-smooth);
}

.side-nav a:hover, 
.side-nav a.active {
    color: var(--bg-black);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-mixed), var(--accent-secondary));
    box-shadow: 0 0 15px rgba(232, 64, 28, 0.4);
}

.side-nav a:hover i, 
.side-nav a.active i {
    color: inherit;
}

/* Tooltips for desktop */
.side-nav a::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    background: var(--bg-card);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav a:hover::before {
    opacity: 1;
    visibility: visible;
    right: 55px;
}

.mobile-nav-header {
    display: none;
}

.mobile-nav-close {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .side-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        height: auto;
        max-height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        padding: 0;
        border-radius: 0 0 0 16px;
        border: none;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transform: none;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }
    
    .side-nav.active {
        right: 0;
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-close {
        display: flex;
        background: none;
        border: none;
        color: var(--text-white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: var(--transition-smooth);
    }
    
    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .side-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0.5rem 0;
    }
    
    .side-nav li {
        width: 100%;
    }
    
    .side-nav a {
        width: 100%;
        height: auto;
        padding: 0.65rem 1rem;
        border-radius: 0;
        justify-content: flex-start;
        gap: 0.7rem;
        font-size: 0.88rem;
        color: var(--text-white);
        transition: var(--transition-smooth);
    }
    
    .side-nav a span {
        display: inline;
        font-weight: 500;
        color: var(--text-white);
    }
    
    .side-nav a i {
        width: 20px;
        text-align: center;
        color: var(--accent-secondary);
    }
    
    .side-nav a:hover,
    .side-nav a.active {
        background: rgba(65, 105, 225, 0.1);
        color: var(--accent-secondary);
        border-left: 3px solid var(--accent-secondary);
    }
    
    .side-nav a::before {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--text-white);
    color: var(--bg-black);
    transform: translateY(-5px) scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: translateY(-5px);
}

/* Mobile button improvements */
@media (max-width: 768px) {
    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 48px; /* Ensure good touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h2.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.hero-content h1.title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
}

.hero-content p.description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.image-wrapper {
    position: relative;
    border-radius: 40px 10px 40px 10px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(232, 64, 28, 0.3);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--accent-secondary));
    animation: rotate-light 4s linear infinite;
    z-index: -1;
}

@keyframes rotate-light {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: 50%;
    background: linear-gradient(to top, var(--bg-black), transparent);
    pointer-events: none;
    border-radius: 0 0 37px 7px;
    z-index: 3;
}

.image-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 37px 7px 37px 7px;
    filter: brightness(0.9) contrast(1.1);
    transition: var(--transition-smooth);
    z-index: 2;
    position: relative;
}

.image-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.badge-1 { top: 20%; left: -10%; }
.badge-2 { bottom: 20%; right: -5%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-secondary), transparent);
}

/* Hide scroll indicator on mobile to prevent overlap */
@media (max-width: 992px) {
    .scroll-indicator {
        display: none;
    }
}

/* --- Vibe Section --- */
.vibe-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 3rem;
    font-weight: 800;
}

.vibe-video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3.5rem 2.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    background: var(--accent-primary);
    transform: translateY(-15px);
}

.service-card:hover h3, 
.service-card:hover p,
.service-card:hover .service-icon {
    color: var(--bg-black);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.service-card p {
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

/* Asymmetric borders for cards */
.asymmetric-tr { border-radius: 0 60px 0 0; }
.asymmetric-bl { border-radius: 0 0 0 60px; }
.asymmetric-br { border-radius: 0 0 60px 0; }

/* --- Insights Section --- */
.insights-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.insight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.insight-row:last-child {
    margin-bottom: 0;
}

.insight-row-reverse {
    direction: rtl;
}

.insight-row-reverse > * {
    direction: ltr;
}

.insight-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.insight-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.insight-image:hover img {
    transform: scale(1.05);
}

.insight-image-tag {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-mixed), var(--accent-secondary));
    color: var(--bg-black);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 1px;
}

.insight-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 1rem;
}

.insight-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.insight-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.insight-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.insight-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-white);
}

.insight-list li i {
    color: var(--accent-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .insight-row,
    .insight-row-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }

    .insight-row-reverse > * {
        direction: ltr;
    }

    .insight-image img {
        height: 300px;
    }

    .insight-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .insight-image img {
        height: 240px;
    }

    .insight-content h3 {
        font-size: 1.5rem;
    }

    .insight-content p {
        font-size: 1rem;
    }
}

/* --- Tech Stack Section --- */
.tech-stack-section {
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

body.light-mode .tech-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(232, 64, 28, 0.1);
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tech-icon {
    font-size: 2rem;
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 5px;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width 1.5s ease-in-out;
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-secondary);
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin: 2rem 0;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-secondary);
}

.stat-item span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-card .quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-secondary);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--bg-black);
}

.client-info h4 {
    font-size: 1.1rem;
    color: var(--text-white);
}

.client-info span {
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-details {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details a {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.contact-details a i {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    width: 24px;
    text-align: center;
}

.contact-details a:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-weight: 600;
    text-decoration: underline;
}

.social-links a:hover {
    color: var(--accent-secondary);
}

#contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--text-white);
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition-smooth);
    font-size: 1rem;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(232, 64, 28, 0.02);
    box-shadow: 0 0 0 2px rgba(232, 64, 28, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    input, textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    textarea {
        min-height: 120px;
        resize: vertical;
    }
}

@media (max-width: 600px) {
    input, textarea {
        padding: 0.9rem;
    }
}

/* --- Footer --- */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1.2s ease-out;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.active, 
.reveal-left.active, 
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .reveal-up, .reveal-left, .reveal-right {
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }
    
    .reveal-left, .reveal-right {
        transform: translateY(30px);
    }
}

/* Smooth transitions for mobile interactions */
@media (max-width: 992px) {
    .mobile-profile-card {
        animation: slideInUp 0.8s ease-out;
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mpc-inner > * {
        animation: fadeInStagger 0.6s ease-out forwards;
        opacity: 0;
    }
    
    .mpc-header { animation-delay: 0.1s; }
    .mpc-image-wrapper { animation-delay: 0.2s; }
    .mpc-info { animation-delay: 0.3s; }
    .mpc-socials { animation-delay: 0.4s; }
    .mpc-btn-cv { animation-delay: 0.5s; }
    
    @keyframes fadeInStagger {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1.title { 
        font-size: 4rem; 
    }
    
    .section-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }
    
    .header .logo { 
        margin: 0;
    }
    
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content h1.title { 
        font-size: 3.2rem; 
        line-height: 1.2;
    }
    
    .hero-content p.description { 
        margin: 0 auto 2.5rem;
        font-size: 1.1rem;
    }
    
    .hero-btns { 
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .services-grid { 
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .tech-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-card {
        padding: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    .about-image { 
        order: 2; 
    }
    
    .about-content { 
        order: 1; 
    }
    
    .stats { 
        justify-content: center;
        gap: 2rem;
    }
    
    .section-heading {
        font-size: 2.2rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 100px 0 50px;
        min-height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-profile-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .mpc-image-wrapper {
        height: 300px;
    }
    
    .mpc-name-overlay {
        font-size: 2.4rem;
        bottom: 16px;
        left: 16px;
    }
    
    .mpc-inner {
        gap: 1.3rem;
        padding: 0 1.3rem 1.8rem;
    }
    
    .hero-content h1.title { 
        font-size: 2.8rem; 
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .tech-grid { 
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        padding: 1.8rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-details a {
        font-size: 1.2rem;
    }
    
    #contact-form {
        padding: 2rem;
    }
    
    .form-actions {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Ensure sections have proper spacing */
    .services-section,
    .tech-stack-section,
    .portfolio-section,
    .about-section,
    .testimonials-section,
    .contact-section {
        padding: 70px 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 90px 0 40px;
        min-height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-profile-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .mpc-image-wrapper {
        height: 280px;
    }
    
    .mpc-name-overlay {
        font-size: 2.2rem;
        bottom: 14px;
        left: 14px;
    }
    
    .mpc-inner {
        padding: 0 1.2rem 1.6rem;
        gap: 1.2rem;
    }
    
    .mpc-top {
        padding: 1.2rem 1rem 0.3rem;
    }
    
    .mpc-greeting {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-content h1.title { 
        font-size: 2.4rem;
        line-height: 1.3;
    }
    
    .hero-content p.description {
        font-size: 1rem;
    }
    
    .hero-btns { 
        flex-direction: column; 
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn-secondary { 
        margin-left: 0; 
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.8rem 1.2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.8rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .stats {
        gap: 1.5rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .contact-details a {
        font-size: 1.1rem;
    }
    
    #contact-form {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    input, textarea {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 30px 0;
        font-size: 0.8rem;
    }
    
    /* Reduce section padding for smaller screens */
    .services-section,
    .tech-stack-section,
    .portfolio-section,
    .about-section,
    .testimonials-section,
    .contact-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 80px 0 30px;
        min-height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-profile-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .mpc-inner {
        padding: 0 1rem 1.4rem;
        gap: 1rem;
    }
    
    .mpc-top {
        padding: 1rem 0.8rem 0.2rem;
    }
    
    .mpc-greeting {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .mpc-image-wrapper {
        height: 260px;
    }
    
    .mpc-name-overlay {
        font-size: 2rem;
        bottom: 12px;
        left: 12px;
    }
    
    .mpc-header {
        margin-bottom: 0.3rem;
    }
    
    .mpc-logo {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .mpc-status {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .hero-content h1.title { 
        font-size: 2.2rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .service-card, .tech-card, .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .services-section,
    .tech-stack-section,
    .portfolio-section,
    .about-section,
    .testimonials-section,
    .contact-section {
        padding: 40px 0;
    }
}

/* --- Mobile Profile Card --- */
.mobile-profile-card {
    display: none;
}

@media (max-width: 992px) {
    .hero-grid {
        display: none !important;
    }
    
    .hero-section {
        padding: 120px 0 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .mobile-profile-card {
        display: block;
        width: 100%;
        max-width: 380px;
        position: relative;
        padding: 4px;
        border-radius: 24px;
        overflow: hidden;
        margin: 0 auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        background: var(--bg-card);
    }

    .mobile-profile-card::before {
        content: '';
        position: absolute;
        inset: 0;
        padding: 4px;
        background: conic-gradient(from 0deg, transparent, var(--accent-secondary), var(--accent-primary), var(--accent-secondary), transparent);
        border-radius: inherit;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
        -webkit-mask-composite: xor;
        animation: rotate-border 3s linear infinite;
        z-index: -1;
    }
    
    @keyframes rotate-border {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .mobile-profile-card::after {
        content: '';
        position: absolute;
        top: 4px; 
        left: 4px; 
        right: 4px; 
        bottom: 4px;
        background: var(--bg-card);
        border-radius: calc(24px - 4px);
        z-index: -1;
    }

    .mpc-top {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem 1rem 0.5rem;
        z-index: 1;
        position: relative;
    }

    .mpc-greeting {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 0.6rem 1.2rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-white);
        backdrop-filter: blur(10px);
    }

    .mpc-inner {
        position: relative;
        z-index: 1;
        padding: 0 1.5rem 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mpc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .mpc-logo {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        color: var(--bg-black);
        font-weight: 800;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .mpc-status {
        background: rgba(0, 255, 136, 0.1);
        color: #00ff88;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border: 1px solid rgba(0, 255, 136, 0.2);
        font-weight: 500;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
        background: #00ff88;
        border-radius: 50%;
        box-shadow: 0 0 10px #00ff88;
        animation: pulse-mobile 2s infinite;
    }

    @keyframes pulse-mobile {
        0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
        70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
        100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
    }

    .mpc-image-wrapper {
        position: relative;
        width: 100%;
        height: 320px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        margin-bottom: 0.5rem;
    }

    .mpc-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        filter: brightness(0.95) contrast(1.05);
    }

    .mpc-name-overlay {
        position: absolute;
        bottom: 20px;
        left: 20px;
        font-family: 'Satisfy', cursive;
        font-size: 2.6rem;
        color: #ffffff;
        text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
        margin: 0;
        font-weight: 400;
        z-index: 2;
    }

    /* Add a subtle gradient overlay to the image */
    .mpc-image-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
        pointer-events: none;
    }
}

/* Global Profile Info Styles (Used in Hero & Mobile Card for classes, hero-profile-info only in Hero) */
.hero-profile-info {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: calc(100% - 6px);
    margin-top: 0;
    padding: 3rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 60%, transparent 100%);
    border-radius: 0 0 37px 7px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.image-wrapper:hover .hero-profile-info {
    transform: translateY(0);
}

/* Hide floating badges when revealing the info card */
.image-wrapper:hover .floating-badge {
    opacity: 0;
    visibility: hidden;
}

.mpc-info {
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.mpc-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition-smooth);
    word-break: break-word;
}

.mpc-email:hover {
    color: var(--accent-secondary);
}

.mpc-location {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0 0 0.5rem 0;
}

.mpc-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.mpc-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.mpc-socials a:hover {
    background: var(--accent-primary);
    color: var(--text-white);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Download feedback animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* CV Download button enhancements */
.mpc-btn-cv {
    width: 100%;
    max-width: 280px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    text-align: left;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
    cursor: pointer;
}

body.light-mode .mpc-btn-cv {
    border: 1px solid var(--accent-secondary);
    background: rgba(0, 0, 0, 0.03);
}

.mpc-btn-cv:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    color: var(--text-white);
}

.mpc-btn-cv:active {
    transform: translateY(0);
}

.mpc-btn-cv i {
    color: var(--accent-secondary);
    transition: var(--transition-smooth);
}

.mpc-btn-cv:hover i {
    transform: translateY(-1px);
}
