/* styles.css - Updated with enhanced mobile navigation */

:root {
    /* Enhanced Color Palette */
    --primary-dark: #0a192f;
    --primary-dark-alt: #0d1f3a;
    --primary-light: #112240;
    --primary-light-alt: #1a2c4b;
    --accent-gold: #e6f1ff;
    --accent-highlight: #64ffda;
    --accent-highlight-alt: #4fd3b0;
    --text-main: #8892b0;
    --text-light: #a8b2d1;
    --text-header: #ccd6f6;
    --white: #ffffff;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
    --radius-lg: 12px;
    
    /* Effects */
    --shadow-sm: 0 10px 30px -10px rgba(2,12,27,0.7);
    --shadow-md: 0 20px 40px -15px rgba(2,12,27,0.8);
    --glass: rgba(17, 34, 64, 0.85);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-slow: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    color: var(--text-header);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

h1 {
    font-size: clamp(40px, 8vw, 80px);
}

h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: var(--accent-highlight);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

button {
    cursor: pointer;
    font-family: inherit;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.section-number {
    color: var(--accent-highlight);
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    margin-right: 15px;
    font-weight: 500;
}

.section-title {
    margin-bottom: 0;
}

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

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

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-highlight);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--accent-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-header);
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-highlight);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-highlight);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-highlight);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-subtitle {
    color: var(--accent-highlight);
    font-family: 'Fira Code', monospace;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero h1 {
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.cta-btn {
    display: inline-block;
    padding: 18px 32px;
    border: 1px solid var(--accent-highlight);
    color: var(--accent-highlight);
    border-radius: var(--radius);
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: var(--transition-slow);
    z-index: -1;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

/* --- Cards --- */
.card {
    background-color: var(--primary-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-highlight);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-link {
    color: var(--accent-highlight);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    gap: 10px;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.about-img {
    position: relative;
}

.profile-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.profile-img::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-highlight);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: var(--transition);
}

.profile-img:hover::before {
    top: 10px;
    left: 10px;
}

.profile-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.profile-img:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* --- Portfolio Section --- */
.tech-stack-container {
    margin-bottom: 60px;
    text-align: center;
}

.tech-stack-container p {
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-light);
}

.tech-tag {
    display: inline-block;
    padding: 10px 18px;
    margin: 8px;
    border: 1px solid var(--primary-light-alt);
    background: rgba(17, 34, 64, 0.5);
    color: var(--accent-highlight);
    border-radius: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: var(--accent-highlight);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

/* Project Cards */
.project-card-featured {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card-featured:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(100, 255, 218, 0.2);
}

.project-thumb {
    width: 100%;
    height: 220px;
    background: var(--primary-dark-alt);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-slow);
    opacity: 0.9;
}

.project-card-featured:hover .project-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-family: 'Fira Code', monospace;
    color: var(--accent-highlight);
    font-size: 0.8rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.project-content h3 {
    color: var(--text-header);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: var(--text-light);
    flex-grow: 1;
    line-height: 1.6;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-tech-list {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-header);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent-highlight);
    transform: translateY(-3px);
}

/* --- Ventures Section --- */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Footer --- */
footer {
    background: var(--primary-dark-alt);
    padding: 70px 0 40px;
    margin-top: 100px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    color: var(--accent-highlight);
    transform: translateY(-5px);
    border-color: var(--accent-highlight);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-main);
}

/* --- Scroll To Top Button --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--accent-highlight);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-highlight);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: var(--primary-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        gap: 25px;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-links {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .card, .project-content {
        padding: 1.5rem;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .nav-menu {
        width: 85%;
    }
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: var(--primary-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        gap: 25px;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    /* Ensure all 7 menu items are visible */
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }
}