/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --background: #0f172a;
    --foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b7;

    --card: rgba(30, 41, 59, 0.8);
    --card-border: rgba(99, 102, 241, 0.3);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --header-bg: rgba(15, 23, 42, 0.95);
    --header-border: rgba(99, 102, 241, 0.2);

    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.5);
}

body.light-mode {
    --background: #f8fafc;
    --foreground: #0f172a;
    --muted: #e2e8f0;
    --muted-foreground: #64748b;
    --card: rgba(255, 255, 255, 0.9);
    --card-border: rgba(99, 102, 241, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Floating Tech Elements */
.floating-tech {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.tech-element {
    position: absolute;
    color: rgba(99, 102, 241, 0.2);
    font-size: 2rem;
    animation: floatTech 20s infinite linear;
}

@keyframes floatTech {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Header - Fixed Mobile Menu Spacing */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    transition: all var(--transition-normal);
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    width: 100%;
}

/* Fixed Logo Spacing for Mobile */
.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-heading);
    font-weight: 900; /* Made bolder */
    font-size: 1.8rem; /* Increased from 1.4rem */
    color: var(--foreground);
    text-decoration: none;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-right: 1rem;
    letter-spacing: -0.5px; /* Tighter spacing */
}

.logo:hover {
    transform: scale(1.03);
}

.logo-brackets {
    color: var(--primary);
    font-size: 1.6rem; /* Increased proportionally */
    font-weight: 900;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.7rem; /* Increased from 1.3rem */
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-normal);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Hero Section with Larger Title */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 8rem); /* SIGNIFICANTLY INCREASED */
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 0.9;
    letter-spacing: -3px;
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    text-shadow: 
        0 4px 30px rgba(99, 102, 241, 0.4),
        0 8px 40px rgba(139, 92, 246, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.typed-text {
    color: var(--primary);
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    transform: translateY(-3px);
}

.btn-holographic {
    position: relative;
    overflow: hidden;
}

.btn-holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-holographic:hover::before {
    left: 100%;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card);
    color: var(--foreground);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cube-container {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.front {
    transform: translateZ(100px);
}

.back {
    transform: translateZ(-100px) rotateY(180deg);
}

.right {
    transform: translateX(100px) rotateY(90deg);
}

.left {
    transform: translateX(-100px) rotateY(-90deg);
}

.top {
    transform: translateY(-100px) rotateX(90deg);
}

.bottom {
    transform: translateY(100px) rotateX(-90deg);
}

/* Enhanced Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 140px;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    vertical-align: super;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Enhanced Scroll Indicator - Desktop Optimized */
.scroll-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    opacity: 0.9;
}

.scroll-indicator p {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--font-mono);
}

.mouse {
    width: 32px;
    height: 54px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    margin: 0 auto;
    position: relative;
    animation: mouseFloat 3s infinite ease-in-out;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(5px);
}

@keyframes mouseFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    }
}

.wheel {
    width: 5px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes scrollWheel {
    0% {
        top: 12px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        top: 32px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    color: var(--primary);
    font-size: 1rem;
    background: var(--card);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section - Fixed Image Alignment */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    max-width: 500px;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.image-border {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}

.about-text {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.about-text h3 .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    font-size: 1.15rem;
    text-align: justify;
    font-weight: 300;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.about-highlights {
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-normal);
    cursor: default;
}

.highlight-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    color: var(--primary);
    font-size: 1.8rem;
    min-width: 35px;
    text-align: center;
}

.highlight-item span {
    font-weight: 600;
    color: var(--foreground);
    font-size: 1.05rem;
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Timeline Styles for Experience */
.experience .timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.experience .timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--primary);
    opacity: 0.5;
}

.experience .timeline-item {
    width: 50%;
    padding: 2.5rem;
    position: relative;
}

.experience .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.experience .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
    text-align: left;
}

.experience .timeline-content {
    background-color: var(--card);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.experience .timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.experience .timeline-date {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-size: 1rem;
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
}

.experience .timeline-content h3 {
    margin-bottom: 0.6rem;
    font-size: 1.5rem;
}

.experience .timeline-content h4 {
    color: var(--muted-foreground);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.experience .timeline-dot {
    position: absolute;
    top: 3rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--background);
    z-index: 2;
    transition: all var(--transition-normal);
}

.experience .timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.experience .timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

/* Education Timeline */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline .timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.education-timeline .timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--background);
}

.education-timeline .timeline-date {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--card);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-timeline .timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-timeline .timeline-content h4 {
    color: var(--muted-foreground);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.skill-category h3 i {
    font-size: 1.8rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
}

.skill-item .skill-level {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.skill-bar {
    height: 10px;
    background: var(--muted);
    border-radius: var(--radius-full);
    overflow: hidden;
    width: 100%;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.achievement-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.08);
}

.achievement-content {
    padding: 1.8rem;
}

.achievement-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.achievement-content p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.achievement-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.contact-details a {
    color: var(--foreground);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-social {
    margin-top: 3rem;
}

.contact-social h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card);
    color: var(--foreground);
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

/* Fixed Contact Form Alignment */
.contact-form {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 2.5rem;
    color: var(--primary);
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    background: var(--muted);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--foreground);
    font-family: var(--font-body);
    transition: all var(--transition-normal);
    font-size: 1rem;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: var(--card);
}

.form-group i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 1.2rem;
    transition: color var(--transition-normal);
    z-index: 1;
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: var(--primary);
}

/* Fixed Message Textarea and Icon Alignment */
.form-group textarea {
    min-height: 180px;
    resize: vertical;
    padding-top: 1.5rem;
    padding-left: 3.5rem;
    line-height: 1.6;
    display: block;
}

.form-group textarea + i {
    top: 1.5rem;
    transform: translateY(0);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 1rem;
    background: var(--gradient-primary);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

#successMessage {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer - Simple & Clean */
footer {
    background: var(--muted);
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-copyright i {
    color: #e74c3c !important; /* BRIGHT RED HEART */
    margin: 0 0.25rem;
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Scroll to Top */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 2s infinite linear;
}

.loader-cube .face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid var(--primary);
}

#loading-screen p {
    margin-top: 2rem;
    color: var(--primary);
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

/* Enhanced Desktop View */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 8rem;
        letter-spacing: -4px;
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        bottom: 150px;
    }

    .mouse {
        width: 36px;
        height: 60px;
        border-width: 3px;
    }

    .wheel {
        width: 6px;
        height: 12px;
    }

    .scroll-indicator p {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-top: 25px;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(3.5rem, 10vw, 6rem);
        letter-spacing: -2px;
    }
    
    .scroll-indicator {
        bottom: 80px;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-item {
        min-width: 120px;
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .experience .timeline:before {
        left: 30px;
    }

    .experience .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }

    .experience .timeline-item:nth-child(even) {
        left: 0;
    }

    .experience .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        gap: 3rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo-brackets {
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 11vw, 5rem);
        letter-spacing: -1px;
        line-height: 1;
        margin-bottom: 1.2rem;
    }

    /* Fixed Mobile Menu Spacing */
    .nav-container {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.4rem;
        gap: 0.2rem;
    }

    .logo-brackets {
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--header-bg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-normal);
        backdrop-filter: blur(20px);
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .theme-toggle {
        margin-left: 0;
    }

    section {
        padding: 4rem 0;
    }

    .scroll-indicator {
        bottom: 60px;
    }

    .scroll-indicator p {
        font-size: 0.8rem;
        margin-top: 15px;
    }

    .mouse {
        width: 24px;
        height: 40px;
    }

    .wheel {
        width: 4px;
        height: 8px;
        top: 10px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 110px;
        padding: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .image-frame {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-text h3 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.05rem;
        text-align: left;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-cta {
        flex-direction: column;
    }

    .skill-category {
        padding: 1.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-list {
        gap: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 1.5rem;
    }

    footer {
        padding: 2rem 0;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(2.8rem, 12vw, 4rem);
        letter-spacing: -0.5px;
    }
    
    .container {
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .scroll-indicator {
        bottom: 50px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .experience .timeline-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Ultra-small screens */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .mobile-nav-toggle {
        font-size: 1.5rem;
        padding: 0.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    footer {
        padding: 1.5rem 0;
    }
}