/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Eye Opening Animation */
.eye-opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.eye-opening-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.eye-container {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.eye {
    position: relative;
    width: 200px;
    height: 100px;
    overflow: hidden;
}

.eyeball {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.iris {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #4B86B9, #2A4D69);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: irisAppear 0.3s ease-out 0.5s both;
}

.pupil {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.eyelid {
    position: absolute;
    width: 220px;
    height: 120px;
    background: #000;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.eyelid-top {
    top: 0;
    border-radius: 0 0 50% 50%;
    animation: eyelidTopOpen 0.8s ease-in-out 0.2s forwards;
}

.eyelid-bottom {
    bottom: 0;
    border-radius: 50% 50% 0 0;
    animation: eyelidBottomOpen 0.8s ease-in-out 0.2s forwards;
}

.brand-reveal {
    opacity: 0;
    animation: brandFadeIn 0.6s ease-out 1s forwards;
}

.brand-reveal .brand-name {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2rem;
    text-transform: lowercase;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes eyelidTopOpen {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-120px);
    }
}

@keyframes eyelidBottomOpen {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(120px);
    }
}

@keyframes irisAppear {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes brandFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Slate Blue & Crisp White Color Palette */
:root {
    --primary-color: #2A4D69;      /* Slate Blue - confidence, reliability */
    --secondary-color: #4B86B9;    /* Light Blue - trust, clarity */
    --accent-color: #B1D4E0;       /* Soft Blue - approachability */
    --pure-white: #FFFFFF;         /* Clarity, professionalism */
    --light-gray: #F4F4F4;         /* Subtlety, balance */
    --text-dark: #2A4D69;          /* Primary text color */
    --text-light: #666666;         /* Secondary text color */
    --gradient-primary: linear-gradient(135deg, #2A4D69 0%, #4B86B9 100%);
    --gradient-accent: linear-gradient(135deg, #4B86B9 0%, #B1D4E0 100%);
    --shadow-light: rgba(42, 77, 105, 0.1);
    --shadow-dark: rgba(42, 77, 105, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pure-white);
    transition: all 0.3s ease;
}

body.dark {
    background-color: #000;
    color: #fff;
}

/* Hide content until animation completes */
body > *:not(.eye-opening-overlay) {
    visibility: hidden;
}

body.animation-complete > *:not(.eye-opening-overlay) {
    visibility: visible;
}

/* Hide hero image initially and show it after animation */
.hero-image {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

body.show-hero-image .hero-image {
    opacity: 1;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--shadow-light);
    box-shadow: 0 2px 20px var(--shadow-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark .header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0);
}

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

body.dark .logo-img {
    filter: brightness(1);
}

body.dark .logo-link:hover .logo-img {
    filter: brightness(1.2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark .nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    transform: translateY(-2px);
}

body.dark .nav-link {
    color: #cccccc;
}

body.dark .nav-link:hover,
body.dark .nav-link.active {
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

body.dark .mobile-menu-toggle {
    color: #ffffff;
}

body.dark .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Active State */
.nav.active {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

body.dark .nav.active {
    background: #0a0a0a;
}

.nav.active .nav-list {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 300px;
}

.nav.active .nav-link {
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.nav.active .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.dark .hero {
    background: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(177, 212, 224, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(75, 134, 185, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a855f7;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-image {
    display: inline-flex;
    justify-content: center;
    align-items: flex-start;
    perspective: 2000px;
    perspective-origin: center bottom;
    margin: 0 auto;
    padding: 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.profile-image {
    width: 428px;
    height: 765px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(100px) rotateY(-5deg) rotateX(2deg);
    /* initial tilt */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    overflow: visible;
    /* keep glow/shadow visible */
    transition: transform 0.6s ease;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(102, 126, 234, 0.6) 0%,
            rgba(118, 75, 162, 0.4) 30%,
            rgba(102, 126, 234, 0.3) 50%,
            transparent 80%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.8;
}

/* Hover: only glow changes, no Z-axis movement */
.profile-image:hover {
    transform: rotateY(-5deg) rotateX(2deg);
    /* same tilt as default */
}

.profile-image:hover::before {
    filter: blur(100px);
    opacity: 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -20px;
    filter: contrast(1.1) brightness(1.05);
    border-radius: 50px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 60px 120px rgba(102, 126, 234, 0.4),
        -10px 0 40px rgba(102, 126, 234, 0.3),
        10px 0 40px rgba(118, 75, 162, 0.3);
    transform: translateZ(50px);
    /* keeps depth for shadows, no hover change */
}

.hero-wrapper {
    width: fit-content;
    height: fit-content;
    overflow: hidden;
    /* trims the “empty” space from transforms/glow */
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

body.dark .section-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    font-weight: 500;
}

body.dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* About Section */
.about {
    background: var(--light-gray);
    position: relative;
    z-index: 2;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(75, 134, 185, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

body.dark .about {
    background: #000;
}

body.dark .about::before {
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

body.dark .about-text p {
    color: #ccc;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

body.dark .stat-item {
    background: #1a1a1a;
    border-color: #333;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

body.dark .stat-label {
    color: #ccc;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark .skill-card {
    background: #0a0a0a;
    border-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.skill-icon svg {
    width: 3rem;
    height: 3rem;
    fill: #667eea;
    transition: all 0.3s ease;
}

.skill-icon:hover svg {
    transform: scale(1.1);
    fill: #764ba2;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

body.dark .skill-name {
    color: #ffffff;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(42, 77, 105, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

body.dark .skill-bar {
    background: rgba(177, 212, 224, 0.1);
}

.skill-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    width: 0%;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-fill::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%); }
}

.skill-percentage {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

body.dark .skill-percentage {
    color: var(--accent-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--pure-white);
    border: 1px solid rgba(42, 77, 105, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-light);
}

body.dark .project-card {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-dark);
    border-color: var(--secondary-color);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

body.dark .project-title {
    color: #ffffff;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.dark .project-description {
    color: #ccc;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f0f0f0;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark .tech-tag {
    background: #333;
    color: #a855f7;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

body.dark .timeline-marker {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark .timeline-content {
    background: #0a0a0a;
    border-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

body.dark .timeline-title {
    color: #ffffff;
}

.timeline-date {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

body.dark .timeline-description {
    color: #ccc;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

body.dark .contact-details h4 {
    color: #ffffff;
}

.contact-details p,
.contact-details a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #667eea;
}

body.dark .contact-details p,
body.dark .contact-details a {
    color: #ccc;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.dark .social-link {
    background: #1a1a1a;
    color: #fff;
}

.social-link:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-form {
    background: var(--pure-white);
    border: 1px solid rgba(42, 77, 105, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-light);
}

body.dark .contact-form {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

body.dark .form-group label {
    color: var(--pure-white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(42, 77, 105, 0.2);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--pure-white);
    color: var(--text-dark);
}

body.dark .form-group input,
body.dark .form-group textarea {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(75, 134, 185, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
}

body.dark .footer {
    background: #000;
    border-top-color: #1a1a1a;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #666;
}

body.dark .footer-content p {
    color: #ccc;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

body.dark .footer-links a {
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
    }

    .hero-content {
        gap: 3rem;
    }

    .nav {
        gap: 2rem;
        padding: 0.5rem 1.5rem;
    }

    .nav-list {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 950px;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

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

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

    .about-content {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 900px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.8rem 1rem;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
        justify-content: center;
        transform: translateY(0);
        perspective: 1000px;
        margin-bottom: 2rem;
    }

    .profile-image {
        width: 300px;
        height: 535px;
        transform: translateZ(0) rotateY(0deg) rotateX(0deg);
    }

    .profile-image::before {
        filter: blur(60px);
        width: 100%;
        height: 60%;
        opacity: 0.6;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: auto;
        min-height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1001;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    body.dark .nav {
        background: #0a0a0a;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
        justify-content: center;
        transform: translateY(0);
        perspective: 1000px;
        margin-bottom: 1.5rem;
    }

    .profile-image {
        width: 280px;
        height: 500px;
        transform: translateZ(0) rotateY(0deg) rotateX(0deg);
    }

    .profile-image::before {
        filter: blur(50px);
        width: 100%;
        height: 50%;
        opacity: 0.5;
    }

    .profile-image:hover {
        transform: translateZ(0) rotateY(0deg) rotateX(0deg);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        padding: 0.6rem 0.8rem;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: auto;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

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

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
        padding-bottom: 2rem;
    }

    .timeline-marker {
        left: 10px;
        width: 12px;
        height: 12px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group {
        gap: 0.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        width: auto;
        max-width: 250px;
        padding: 0.7rem 1.2rem;
        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 5px;
    }
}

/* Beautiful Unique Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Apply Animations */
.skill-card {
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    animation: glow 2s ease-in-out infinite;
}

.project-card {
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.timeline-item {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(even) {
    animation: slideInRight 0.8s ease-out forwards;
}

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.6s ease;
}

.animate .section-title::after {
    width: 100px;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.skill-fill {
    animation: slideInLeft 1.5s ease-out forwards;
}

.stat-item {
    animation: bounceIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate .stat-item {
    animation-delay: 0.2s;
}

.contact-form {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Parallax Effect for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 10s ease-in-out infinite;
}

/* Loading Animation */
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    animation: loading 1s linear infinite;
}

/* Stagger animations for multiple elements */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}