:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Particles.js container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero Section with particles */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(14, 165, 233, 0.1);
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: containerFloat 8s ease-in-out infinite;
}

@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 60px rgba(14, 165, 233, 0.1);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
        box-shadow: 
            0 30px 50px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset,
            0 0 70px rgba(14, 165, 233, 0.15);
    }
    75% {
        transform: translateY(-5px) translateX(-5px);
        box-shadow: 
            0 25px 45px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset,
            0 0 65px rgba(14, 165, 233, 0.12);
    }
}

/* Reduced spacing between elements */
.hero h2 {
    margin-bottom: 0.3rem;
}

.hero h3 {
    margin: 0.3rem 0;
}

.dynamic-text {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.tech-stack {
    margin: 1.5rem 0;
    gap: 0.8rem;
}

.cta-buttons {
    margin: 1.5rem 0;
}

/* Enhanced tech stack animation */
.tech-stack span {
    animation: tagFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

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

/* Update text colors for dark theme */
.hero h2 {
    color: #94a3b8;
}

.hero h1 {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 20px rgba(56, 189, 248, 0.3),
        0 0 40px rgba(56, 189, 248, 0.2);
}

.hero .role {
    color: #94a3b8;
}

.typed-text {
    color: #38bdf8;
}

/* Update tech stack for dark theme */
.tech-stack span {
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(56, 189, 248, 0.1);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #38bdf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    animation: shine 3s linear infinite, glowPulse 2s ease-in-out infinite;
}

h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Typing Animation */
.dynamic-text {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
}

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

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.5rem 1.2rem;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 0 20px rgba(14, 165, 233, 0.1);
    animation: stackFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.tech-stack span:hover {
    transform: translateY(-2px);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    color: white;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 0;
}

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

.contact-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 60px;
    }

    .container {
        padding: 1rem;
    }

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

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Profile Image */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
}

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

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

/* Add responsive design for profile section */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        max-width: 300px;
        margin: 0 auto 2rem;
    }
}

/* Animated underline for name */
h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #38bdf8 50%,
        transparent 100%
    );
    animation: underlineFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(56, 189, 248, 0.3),
            0 0 40px rgba(56, 189, 248, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(56, 189, 248, 0.5),
            0 0 60px rgba(56, 189, 248, 0.3),
            0 0 80px rgba(56, 189, 248, 0.2);
        transform: scale(1.02);
    }
}

@keyframes underlineFloat {
    0%, 100% {
        transform: translateX(0) scaleX(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10%) scaleX(1);
        opacity: 1;
    }
} 

/* Showcase Section */
.showcase {
    padding: 4rem 0;
    background: var(--background-color);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.showcase-card:hover {
    transform: translateY(-5px);
}

.showcase-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.showcase-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.showcase-card .btn {
    display: inline-block;
    margin-top: 1rem;
} 