:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Accessibility CSS */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Enhanced focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .social-link,
    .nav-link,
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 1240px) {
    .container {
        max-width: 1024px;
        padding: 0 32px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
        padding: 0 24px;
    }
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-cta {
        display: none;
    }
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    background: none;
    border: none;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Improved hamburger accessibility */
.hamburger:focus {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px;
}

.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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 16px;
    }
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e0e7ff;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.3;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(10px, 2vw, 12px) clamp(24px, 4vw, 32px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    min-width: 140px;
    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: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.05);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* AI Visualization */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-visualization {
    width: clamp(250px, 50vw, 400px);
    height: clamp(250px, 50vw, 400px);
    position: relative;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

.ai-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    border-radius: 25px;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
}

.floating-element:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 10%; right: 20%; animation-delay: 1s; }
.floating-element:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 2s; }
.floating-element:nth-child(4) { bottom: 10%; right: 30%; animation-delay: 3s; }
.floating-element:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.floating-element:nth-child(6) { top: 60%; right: 10%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-5deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-text {
    font-size: 0.8rem;
    margin-bottom: 8px;
    opacity: 0.7;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

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

/* Section Styles */
section {
    padding: clamp(60px, 10vw, 100px) 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    padding: 0 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    padding: 0 16px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.executive-summary h3,
.achievements h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.executive-summary p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 1.5rem;
}

.achievement-item {
    text-align: center;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-number {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.achievement-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h4 {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop Timeline - Center Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Desktop Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    display: flex;
}

/* Odd items (1st, 3rd, 5th) - Left side */
.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    align-self: flex-start;
    padding-right: 30px;
}

/* Even items (2nd, 4th, 6th) - Right side */
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    align-self: flex-end;
    padding-left: 30px;
}

/* Desktop Timeline Markers */
.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    z-index: 1;
    top: 30px;
}

/* Left side items - marker on the right edge */
.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

/* Right side items - marker on the left edge */
.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease;
    position: relative;
}

/* Add subtle arrows pointing to timeline */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    width: 0;
    height: 0;
    border-right: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-header h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-secondary);
}

.company {
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-description {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.5;
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.timeline-achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.project-card {
    background: white;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: var(--bg-secondary);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.stat-label {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    color: var(--text-secondary);
}

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

.tech-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Education Section */
.education {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: var(--bg-secondary);
}

.education-content {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.education-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.education-details h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-details h4 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.institution {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--primary-color);
    font-weight: 600;
}

.year {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    color: var(--text-light);
    font-weight: 500;
}

.recognition-section {
    margin-top: clamp(3rem, 5vw, 4rem);
}

.recognition-section h3 {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.recognition-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recognition-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.recognition-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.recognition-content h4 {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.recognition-content p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::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"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.5;
}

.contact .section-title {
    color: white;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.contact .section-subtitle {
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.contact-info p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    flex-shrink: 0;
}

.contact-label {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #94a3b8;
}

.contact-value {
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    word-break: break-word;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    backdrop-filter: blur(10px);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--secondary-color);
}

.form-group {
    position: relative;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .footer-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 16px;
    }
}

.footer-text p {
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    /* Timeline adjustments for tablets */
    .timeline {
        padding: 0 20px;
    }
    
    .timeline-content {
        width: 85%;
    }
}

/* Tablet Timeline (768px - 1024px) */
@media (max-width: 900px) {
    .timeline {
        padding: 0 24px;
    }
    
    .timeline::before {
        left: 32px;
        transform: none;
    }
    
    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        align-self: flex-start;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 32px !important;
        transform: translateX(-50%) !important;
    }
    
    .timeline-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease, opacity 0.3s ease;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        gap: 1rem;
        opacity: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
        opacity: 1;
    }
    
    /* Prevent background scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Mobile Timeline */
    .timeline {
        padding: 0 20px;
    }
    
    .timeline::before {
        left: 28px;
        transform: none;
        width: 3px;
    }
    
    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 56px;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        align-self: flex-start;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 56px;
    }
    
    .timeline-marker {
        left: 28px !important;
        transform: translateX(-50%) !important;
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        min-width: 160px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .recognition-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recognition-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 30px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        min-width: 200px;
        width: 100%;
        max-width: 280px;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Small Mobile Timeline */
    .timeline {
        padding: 0 16px;
    }
    
    .timeline::before {
        left: 24px;
        transform: none;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 48px;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 48px;
    }
    
    .timeline-marker {
        left: 24px !important;
        transform: translateX(-50%) !important;
        width: 14px;
        height: 14px;
        border: 3px solid white;
    }
    
    .timeline-content {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    .timeline-header h3 {
        font-size: 1.1rem;
    }
    
    .timeline-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
    }
    
    .timeline-achievements li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-methods {
        gap: 0.75rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .skill-tags {
        gap: 0.25rem;
    }
    
    .skill-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .tech-tag {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .floating-element {
        padding: 4px 8px;
        font-size: 0.6rem;
    }
    
    .hero-social {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Button Submit States */
.btn-submit {
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit:disabled:hover {
    transform: none !important;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text,
.btn-loading {
    transition: opacity 0.3s ease;
}

/* Enhanced Hover Effects */
.achievement-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px -5px rgb(0 0 0 / 0.15);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.15);
    box-shadow: var(--shadow-md);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #008000;
        --text-primary: #000000;
        --text-secondary: #000000;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }
    
    .btn-primary {
        background: #0000ff;
        color: #ffffff;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --border-color: #374151;
    }
    
    .achievement-item,
    .project-card,
    .timeline-content {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element {
        animation: none !important;
    }
    
    .ai-pulse {
        animation: none !important;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Project Highlights Styling */
.project-highlights {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
    padding: 0;
}

.project-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Improved project card spacing */
.project-card p {
    margin-bottom: 1rem;
}

.project-card .project-highlights + .project-stats {
    margin-top: 1.5rem;
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-progress,
    .floating-elements,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .section-title {
        color: black !important;
    }
}