:root {
    --accent-transparency: rgba(154, 107, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --primary-background: #0d0d0d;
    --secondary-background: #121212;
    --text-primary: #f8f8f8;
    --text-secondary: #d1d1d1;
    --accent: #9a6bff;
    --accent-light: #b18aff;
    --accent-dark: #7d4dff;
    --card-background: rgba(30, 30, 30, 0.6);
    --font-main: 'Inter', sans-serif;
    --section-padding: 6rem 5%;
    --card-gap: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(var(--primary-background), var(--secondary-background));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}



h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem); 
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem); 
}

p {
    color: var(--text-secondary);
    max-width: 700px;
}

.highlight {
    color: var(--accent);
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
}

.home-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.home-text {
    flex: 1;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(154, 107, 255, 0.2);
    position: relative;
    z-index: 1;
    filter: grayscale(20%) contrast(1.1);
}

.profile-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(
        to right,
        rgba(13, 13, 13, 0.8) 0%,
        rgba(13, 13, 13, 0.4) 50%,
        rgba(13, 13, 13, 0) 100%
    );
    z-index: 2;
}

.static-text {
    display: block;
    margin-bottom: 1rem;
}

.animated-text {
    color: var(--accent);
    font-weight: 700;
    display: inline-block;
    min-width: 160px;
    min-height: 1.4em;
    line-height: 1.1;
    vertical-align: middle;
    transition: min-width 0.2s;
}

.bio {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background-color: var(--accent);
    color: var(--primary-background);
    box-shadow: 0 4px 15px rgba(154, 107, 255, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(154, 107, 255, 0.6);
    background-color: var(--accent-light);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.secondary-btn:hover {
    background-color: rgba(154, 107, 255, 0.1);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: var(--accent);
}


/* Projects Section */
#projects {
    padding: var(--section-padding);
    background-color: var(--secondary-background);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-header p {
    margin: 1rem auto 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--card-gap);
    margin-top: 3rem;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 107, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(154, 107, 255, 0.2);
    border-color: rgba(154, 107, 255, 0.3);
}

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tags span {
    background-color: var(--accent-transparency);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: var(--accent-light);
}

.github-link {
    text-align: center;
    margin-top: 4rem;
}

.github-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.github-link a:hover {
    color: var(--accent-light);
    gap: 1rem;
}


/* About Section */
#about {
    padding: 8rem 5%;
    background: var(--secondary-background);
    text-align: center;
}

.about-content {
    max-width: 650px;
    margin: 0 auto;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
    max-width: 600px;
}

.passion-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 600px;
}

.passion-list li {
    background: rgba(154, 107, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.passion-list li::before {
    content: none;
}

.skills {
    margin-top: 3rem;
    width: 100%;
}

.skills h4 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.skills-items {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-item {
    background-color: var(--accent-transparency);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* Contact Section */
#contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-background), var(--secondary-background));
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.email-btn {
    display: inline-block;
    background-color: rgba(154, 107, 255, 0.1);
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(154, 107, 255, 0.3);
}

.email-btn:hover {
    background-color: rgba(154, 107, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(154, 107, 255, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(154, 107, 255, 0.1);
    border: 1px solid rgba(154, 107, 255, 0.2);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
    background-color: rgba(154, 107, 255, 0.2);
    box-shadow: 0 5px 15px rgba(154, 107, 255, 0.2);
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-background);
    border-top: 1px solid rgba(154, 107, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}


/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Apply to all main sections */
section { animation: fadeIn 0.8s ease-out both; }
#home { animation-delay: 0.1s; }
#projects { animation-delay: 0.2s; }
#contact { animation-delay: 0.3s; }
.project-card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
#navbar { animation: fadeIn 0.6s ease-out; }


/* Pulse effect (for View Projects text) */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.primary-btn { animation: pulse 2s infinite ease-in-out; }


/* Responsive Design */
@media (max-width: 992px) {
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .profile-img {
        max-width: 300px;
    }
    
    .profile-img::after {
        background: linear-gradient(
            to bottom,
            rgba(13, 13, 13, 0.8) 0%,
            rgba(13, 13, 13, 0.4) 50%,
            rgba(13, 13, 13, 0) 100%
        );
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .bio {
        margin-left: auto;
        margin-right: auto;
    }

    .scroll-down {
        position: absolute;
        bottom: 35px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-primary);
        font-size: 1.5rem;
        animation: bounce 2s infinite;
        cursor: pointer;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1000;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 0;
        display: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 1100;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        z-index: 1100;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }

    .scroll-down {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-primary);
        font-size: 1.5rem;
        animation: bounce 2s infinite;
        cursor: pointer;
        transition: all 0.3s ease;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 4rem 5%;
    }
    
    .home-text h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        gap: 1rem;
    }

    .scroll-down {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-primary);
        font-size: 1.5rem;
        animation: bounce 2s infinite;
        cursor: pointer;
        transition: all 0.3s ease;
    }

}