/* Color Palette & Reset */
:root {
    --bg-dark: #1b2430;
    --bg-darker: #131a22;
    --cyan-accent: #00f2fe;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- ADDED SMOOTH SCROLLING HERE --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background aesthetic (Subtle mountain/gradient effect) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(27, 36, 48, 0.9), rgba(19, 26, 34, 1));
    z-index: -2;
}

.cyan-text {
    color: var(--cyan-accent);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.4rem 5%;
    background: transparent;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--cyan-accent);
    font-size: 2rem;
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    transition: color 0.22s ease;
}

.nav-links a:hover {
    color: var(--cyan-accent);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--cyan-accent);
    outline-offset: 3px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 8%;
    min-height: 80vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--cyan-accent);
    color: var(--cyan-accent);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--cyan-accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--cyan-accent);
    color: var(--bg-dark);
    border: 2px solid var(--cyan-accent);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--cyan-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cyan-accent);
    border: 2px solid var(--cyan-accent);
}

.btn-secondary:hover {
    background-color: var(--cyan-accent);
    color: var(--bg-dark);
}

/* Hexagon Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-wrapper {
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.4));
}

.hexagon {
    width: 380px;
    height: 430px;
    background-color: var(--cyan-accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon img {
    width: 98%;
    height: 98%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* About Section & Tabs */
.about-section {
    padding: 5rem 8%;
    background-color: var(--bg-darker);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
}

.about-wrapper {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
    justify-content: center;
}

.about-profile-card {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-profile-card img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--bg-darker);
    position: relative;
    z-index: 2;
    margin-bottom: -85px;
}

.card-bottom {
    background-color: var(--cyan-accent);
    color: var(--bg-dark);
    width: 100%;
    border-radius: 12px;
    padding: 100px 1.5rem 2rem;
    text-align: center;
}

.card-bottom h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card-bottom p {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.about-details {
    flex: 1;
    max-width: 600px;
}

.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
}

.tab {
    padding-bottom: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--cyan-accent);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cyan-accent);
}

.edu-item {
    margin-bottom: 2rem;
}

.edu-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.edu-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Standard Sections (Projects, Skills) */
.standard-section {
    padding: 5rem 8%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border-left: 3px solid var(--cyan-accent);
}

.project-box p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan-accent);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--cyan-accent);
}

.full-width {
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    border: none;
    margin-top: 1rem;
}

.form-status {
    min-height: 1.4rem;
    margin-top: 0.35rem;
    color: #a5b4c7;
    font-size: 0.92rem;
}

.form-status.success {
    color: #7fffd4;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   RESPONSIVE DESIGN & MOBILE MENU
   ========================================= */

/* Hamburger Icon (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Tablets and small desktops */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .social-icons, .hero-buttons {
        justify-content: center;
    }

    .about-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile Phones (768px and below) */
@media (max-width: 768px) {
    /* Navbar and Hamburger Menu */
    .navbar {
        justify-content: space-between; /* Pushes logo and menu to opposite sides */
        padding: 1.5rem 5%;
        position: relative;
    }

    .menu-toggle {
        display: flex; /* Show the hamburger icon */
    }

    .nav-links {
        display: none; /* Hide default desktop row */
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-darker);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex; /* Display as column when JS toggles '.active' class */
    }

    .nav-links li {
        padding: 0.8rem 0;
    }

    /* Adjust Hexagon Image Size for mobile */
    .hexagon {
        width: 280px;
        height: 320px;
    }

    /* Stack Form Fields Vertically */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
}
