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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --accent-green: #84cc16;
}

/* Dark Mode (Default) */
[data-theme="dark"] {
    --text-dark: #ffffff;
    --text-light: #d1d5db;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --white: #ffffff;
    --border-color: #334155;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 40px rgba(59, 130, 246, 0.4);
    --shadow-glow: 0 0 30px rgba(132, 204, 22, 0.3);
}

/* Light Mode */
[data-theme="light"] {
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-dark: #ffffff;
    --bg-darker: #f9fafb;
    --bg-card: #ffffff;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(59, 130, 246, 0.2);
    --shadow-glow: 0 0 20px rgba(132, 204, 22, 0.15);
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-darker);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #84cc16 0%, #3b82f6 50%, #84cc16 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 
        0 0 10px currentColor,
        0 0 20px rgba(132, 204, 22, 0.5),
        0 0 30px rgba(59, 130, 246, 0.4),
        0 3px 15px rgba(132, 204, 22, 0.3);
    filter: blur(0.5px);
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #84cc16 0%, #3b82f6 50%, #84cc16 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    animation: gradientShift 12s ease infinite;
    filter: 
        drop-shadow(0 0 2px rgba(132, 204, 22, 0.6))
        drop-shadow(0 0 5px rgba(132, 204, 22, 0.4))
        drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.logo:hover {
    transform: scale(1.06);
    filter: 
        drop-shadow(0 0 3px rgba(132, 204, 22, 0.8))
        drop-shadow(0 0 8px rgba(132, 204, 22, 0.6))
        drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
    animation-play-state: paused;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-green);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    border-color: var(--accent-green);
    box-shadow: 0 5px 20px rgba(132, 204, 22, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(132, 204, 22, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Stars (Dark Mode Only) */
.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 0;
    pointer-events: none;
    display: none;
}

[data-theme="dark"] .hero-stars {
    display: block;
}

.hero-stars .star {
    opacity: 0.4;
}

.hero-stars .star.small {
    width: 1.5px;
    height: 1.5px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.6);
}

.hero-stars .star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}

.hero-stars .star.large {
    width: 2.5px;
    height: 2.5px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Light mode hero styling */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .project-card,
[data-theme="light"] .contact-item,
[data-theme="light"] .interest-item,
[data-theme="light"] .tag {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .contact-item:hover,
[data-theme="light"] .interest-item:hover {
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2), 0 0 20px rgba(132, 204, 22, 0.15);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-headshot {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    min-width: 300px !important;
    min-height: 300px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #84cc16;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.highlight {
    background: linear-gradient(120deg, #84cc16 0%, #65a30d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s;
    animation-fill-mode: backwards;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(132, 204, 22, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

/* About Section */
.about {
    padding: 100px 20px;
    background: var(--bg-dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    z-index: 10;
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #84cc16);
    margin: 1rem auto 0;
    border-radius: 2px;
    transition: width 0.8s ease 0.5s;
    animation: expandWidth 1s ease forwards 0.3s;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes bounceJiggle {
    0% {
        transform: scale(1) rotate(0deg);
    }
    10% {
        transform: scale(1.1) rotate(-5deg);
    }
    20% {
        transform: scale(1.1) rotate(5deg);
    }
    30% {
        transform: scale(1.15) rotate(-5deg);
    }
    40% {
        transform: scale(1.15) rotate(5deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    60% {
        transform: scale(1.15) rotate(-3deg);
    }
    70% {
        transform: scale(1.1) rotate(3deg);
    }
    80% {
        transform: scale(1.05) rotate(-2deg);
    }
    90% {
        transform: scale(1.02) rotate(1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.bounce-animation {
    animation: bounceJiggle 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 15px 50px rgba(132, 204, 22, 0.6), 0 0 40px rgba(59, 130, 246, 0.4) !important;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.skills {
    text-align: center;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--accent-green);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(132, 204, 22, 0.4);
}

/* Projects Section */
.projects {
    padding: 100px 20px;
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5), 0 0 30px rgba(132, 204, 22, 0.2);
    border-color: var(--accent-green);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #84cc16);
    transition: width 0.4s ease;
}

.project-link:hover {
    transform: translateX(4px);
}

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

/* Personal Section */
.personal {
    padding: 100px 20px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Mountain Silhouette Background */
.mountains-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: all 0.3s ease;
}

.mountain-back {
    height: 80%;
    background: #1a2642 !important;
    clip-path: polygon(
        0% 100%, 0% 60%, 
        2% 58%, 5% 52%, 8% 48%, 10% 45%, 12% 40%, 15% 35%, 
        18% 30%, 20% 25%, 22% 20%, 25% 15%, 28% 12%, 30% 10%, 
        32% 8%, 35% 10%, 38% 12%, 40% 15%, 42% 20%, 45% 25%, 
        48% 28%, 50% 32%, 52% 35%, 55% 38%, 58% 35%, 60% 32%, 
        62% 28%, 65% 25%, 68% 30%, 70% 35%, 72% 40%, 75% 45%, 
        78% 50%, 80% 52%, 82% 55%, 85% 58%, 88% 60%, 90% 100%
    );
    z-index: 10;
    opacity: 1 !important;
}

.mountain-mid {
    height: 85%;
    background: #2d3f5f !important;
    clip-path: polygon(
        0% 100%, 0% 75%, 
        3% 72%, 5% 68%, 8% 63%, 10% 58%, 13% 53%, 15% 48%, 
        18% 43%, 20% 40%, 23% 36%, 25% 33%, 28% 30%, 30% 28%, 
        33% 26%, 35% 24%, 38% 26%, 40% 28%, 43% 33%, 45% 38%, 
        48% 43%, 50% 46%, 52% 48%, 55% 50%, 57% 46%, 60% 43%, 
        62% 38%, 65% 33%, 67% 30%, 70% 33%, 72% 36%, 75% 38%, 
        77% 36%, 80% 40%, 82% 43%, 85% 46%, 87% 50%, 90% 53%, 
        92% 56%, 95% 60%, 97% 64%, 99% 68%, 100% 72%, 100% 100%
    );
    z-index: 11;
    opacity: 1 !important;
}

.mountain-front {
    height: 55%;
    background: #3a5a40 !important;
    clip-path: polygon(
        0% 100%, 0% 70%, 
        5% 68%, 8% 65%, 12% 62%, 15% 58%, 18% 55%, 22% 50%, 
        25% 45%, 28% 42%, 32% 38%, 35% 35%, 38% 40%, 42% 45%, 
        45% 48%, 48% 52%, 52% 55%, 55% 52%, 58% 48%, 62% 45%, 
        65% 42%, 68% 38%, 70% 35%, 73% 38%, 75% 42%, 78% 45%, 
        82% 50%, 85% 55%, 88% 58%, 92% 62%, 95% 65%, 98% 68%, 
        100% 70%, 100% 100%
    );
    z-index: 12;
    opacity: 1 !important;
}

/* Light mode mountains */
[data-theme="light"] .mountain-back {
    background: linear-gradient(to bottom, transparent 0%, rgba(59, 130, 246, 0.12) 100%);
    opacity: 0.3 !important;
}

[data-theme="light"] .mountain-mid {
    background: linear-gradient(to bottom, transparent 0%, rgba(59, 130, 246, 0.18) 100%);
    opacity: 0.4 !important;
}

[data-theme="light"] .mountain-front {
    background: linear-gradient(to bottom, transparent 0%, rgba(132, 204, 22, 0.15) 100%);
    opacity: 0.35 !important;
}

/* Celestial Object (Moon/Sun) */
.celestial {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Dark mode moon */
[data-theme="dark"] .celestial {
    background: radial-gradient(circle at 35% 35%, #f0f0f0 0%, #d1d5db 100%);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        inset -15px -15px 20px rgba(150, 150, 150, 0.3);
}

/* Light mode sun */
[data-theme="light"] .celestial {
    background: radial-gradient(circle at 50% 50%, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 
        0 0 50px rgba(251, 191, 36, 0.6),
        0 0 100px rgba(251, 191, 36, 0.3);
}

/* Stars (Dark Mode Only) */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 1;
    display: none;
    pointer-events: none;
}

[data-theme="dark"] .stars {
    display: block;
}

/* Milky Way Effect (Dark Mode Only) */
.milky-way {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: none;
}

[data-theme="dark"] .milky-way {
    display: block;
}

.milky-way .star {
    animation: twinkleMilkyWay 4s ease-in-out infinite;
}

.milky-way .star.bright {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.6);
}

@keyframes twinkleMilkyWay {
    0%, 100% {
        filter: brightness(0.9);
    }
    50% {
        filter: brightness(1.1);
    }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star.small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.star.medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.star.large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Summoning Easter Egg Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes summoningPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(220, 38, 38, 0.8),
                    0 0 100px rgba(220, 38, 38, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(220, 38, 38, 1),
                    0 0 150px rgba(220, 38, 38, 0.7);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.8),
                    0 0 40px rgba(220, 38, 38, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(220, 38, 38, 1),
                    0 0 60px rgba(220, 38, 38, 0.8),
                    0 0 90px rgba(220, 38, 38, 0.5);
    }
}

.star:nth-child(odd) {
    animation-duration: 2.5s;
}

.star:nth-child(even) {
    animation-duration: 3.5s;
}

.star:nth-child(3n) {
    animation-duration: 4s;
}

.personal-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.personal-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-align: center;
}

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

.interest-item {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.interest-item:hover {
    background: var(--bg-darker);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4), var(--shadow-glow);
    transform: translateX(12px) scale(1.02);
    border-left-color: #84cc16;
    border-left-width: 6px;
    border-color: var(--accent-green);
}

.interest-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.interest-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: var(--bg-darker);
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5), var(--shadow-glow);
    background: var(--bg-dark);
    border-color: var(--accent-green);
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--accent-green);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #84cc16);
    transition: width 0.4s ease;
}

.social-link:hover {
    color: #84cc16;
    transform: translateY(-3px);
}

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

/* Email Button */
.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.email-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(132, 204, 22, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.email-btn:hover::before {
    width: 400px;
    height: 400px;
}

.email-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5), 0 0 30px rgba(132, 204, 22, 0.3);
}

.email-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.email-btn:hover .email-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: var(--white);
    text-align: center;
    padding: 2rem 20px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    opacity: 0.7;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero-headshot {
        width: 220px !important;
        height: 220px !important;
        max-width: 220px !important;
        max-height: 220px !important;
        min-width: 220px !important;
        min-height: 220px !important;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

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

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

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

}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.25rem;
    }

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

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

