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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-bg: #0f0f23;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-color: #f72585;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.navbar .container {
    display: flex;
    /* Changed from space-between to center */
    justify-content: center;
    align-items: center;
}

.nav-brand {
    /* This class is no longer used but kept for structure */
    display: none; 
}

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

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: -200px;
    right: -200px;
    z-index: 0;
}

/* --- UPDATED HERO CONTAINER --- */
.hero .container {
    display: grid;
    /* Changed from 1fr 1fr to 1fr */
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Added to help center content */
    justify-content: center;
    text-align: center;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    /* Set a minimum height to prevent layout shift during typing */
    min-height: 2.5rem;
}

/* --- NEW TYPING CURSOR STYLE --- */
#typing-text::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 0.7s infinite;
}

/* New class to stop blinking when done */
#typing-text.typing-finished::after {
    animation: none;
    content: '';
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    /* Constrain width and center it */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    /* Center the buttons */
    justify-content: center;
}

/* --- UPDATED .btn CLASS --- */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    
    /* Replaced 'inline-block' with 'inline-flex' for centering */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- HERO IMAGE REMOVED (NO STYLES NEEDED) --- */
.hero-image {
    display: none;
}
.hero-img-placeholder {
    display: none;
}
.hero-img {
    display: none;
}


.about, .skills, .projects, .notebooks, .contact {
    padding: 6rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    align-items: flex-start; /* <-- ADD THIS LINE */
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
}

.info-value {
    color: var(--text-secondary);
}

/* --- New styles for the goals list --- */
.info-value .goals-list {
    list-style: none; /* Removes default bullets */
    padding: 0;
    margin: 0;
}

.info-value .goals-list li {
    position: relative;
    padding-left: 1.5rem; /* Make room for custom bullet */
}

/* Add a custom bullet to match your project cards */
.info-value .goals-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Add space between the two goal items */
.info-value .goals-list li:not(:last-child) {
    margin-bottom: 0.5rem; 
}


.skills {
    background: var(--card-bg);
}

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

.skill-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* --- NEW SVG ICON STYLES --- */
.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    /* Colors the SVG icon with your primary color */
    color: var(--primary-color);
}
.skill-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
}


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

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- UPDATED PROJECTS GRID --- */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    
    /* Fixed width for consistent sizing - 3 cards per row */
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    max-width: 380px;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.project-tag {
    background: var(--gradient);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-features {
    list-style: none;
}

.project-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.notebooks {
    background: var(--card-bg);
}

.notebooks-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.notebooks-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.notebooks-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.notebooks-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- UPDATED CONTACT SECTION --- */
.contact-content {
    display: grid;
    /* Changed to single column */
    grid-template-columns: 1fr;
    gap: 2rem; /* Reduced gap */
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column; /* This will be overridden on desktop */
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 100%; /* Added this */
}

.contact-item:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color); /* Added this */
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- New styles for contact SVGs, CTA, and layout --- */
.contact-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
}

.contact-cta {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem; /* Space above this new line */
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* This makes the layout horizontal on desktop */
@media (min-width: 900px) {
    .contact-info {
        flex-direction: row; /* Horizontal layout */
        max-width: 100%;
    }
}

/* --- FORM STYLES REMOVED --- */
.contact-form-wrapper,
.contact-form,
.form-group,
.form-group input,
.form-group textarea,
.btn-submit,
.form-message,
.form-note {
    display: none;
}


.footer {
    background: var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer p {
    color: var(--text-secondary);
}

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .skills-grid,
    .projects-grid {
        /* This rule now just sets 1 column for mobile, */
        /* as the flexbox rules will be overridden */
        grid-template-columns: 1fr;
        display: grid; /* Re-set display to grid for mobile */
    }

    .project-card {
        width: auto; /* Reset width for mobile */
        max-width: 100%;
    }

    /* This media query already handles the contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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