/* OPTION 1: Professional Charcoal & Teal Palette */
:root {
    /* Backgrounds */
    --bg-main: #0F1115;
    /* Charcoal (main background) */
    --bg-section: #181A20;
    /* Section / card background */

    /* Accent */
    --accent: #2DD4BF;
    /* Teal */
    --accent-hover: #14B8A6;

    /* Text */
    --text-main: #E5E7EB;
    /* Main text */
    --text-muted: #9CA3AF;
    /* Sub text */

    /* Borders */
    --border-subtle: #262A33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Custom Scrollbar - kept refined */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
    cursor: default;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Sections */
section {
    min-height: auto;
    /* Remove min-height constraint for better spacing */
    padding: 100px 9% 80px;
}

.section-dark {
    background-color: var(--bg-section);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-main);
    font-weight: 700;
}

.section-title span {
    color: var(--accent);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 9% 100px;
    /* Specific padding as requested */
}

.hero-content {
    flex: 1;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* 56px approx */
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text-main);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 520px;
    margin-bottom: 0.5rem;
    /* Reduced from 2rem */
    font-weight: 400;
}

.hero-content .tagline-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
    /* Restore bottom margin for the last line */
    color: #64748b;
}


.cta-container {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-main);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    box-shadow: none;
    /* Removed neon glow */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}


.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-subtle);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
}

/* Profile Image */
.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.img-container {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    /* Professional look: Border instead of neon glow */
    border: 3px solid var(--accent);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.35);
    /* Subtle shadow per brief */
    /* Removed float animation */
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-text {
    text-align: left;
    /* Better readability */
    max-width: 800px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-section);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    /* Smoother radius */
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: none;
    /* Removing heavy glow */
}

.skill-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-main);
    /* Alternating from section bg */
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.project-card .category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    display: block;
}

.project-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Project tech stack and learnings styling */
.project-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.tech-stack {
    font-size: 0.9rem !important;
    /* Override card p size */
    color: var(--text-main) !important;
    margin-bottom: 0.5rem;
}

.key-learnings {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.key-learnings li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.key-learnings li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Looking For Section */
.looking-content {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border: none;
    text-align: center;
}

.looking-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.looking-content strong {
    color: var(--text-main);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 2rem 9%;
    text-align: center;
    background: var(--bg-main);
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

/* Media Queries */
@media (max-width: 991px) {
    section {
        padding: 80px 5% 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-subtle);
        display: none;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .nav-links a {
        margin: 0;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0 !important;
    }

    .social-icons {
        justify-content: center;
    }

    .img-container {
        width: 250px;
        height: 250px;
    }
}