/* style.css */

/* 1. Global Reset & Fonts */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

:root {
    --primary: #6366f1;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-gray: #475569;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* 2. Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem; /* Reduced from 2.5rem so all 6 links fit perfectly */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem; /* Slightly smaller font makes it look much cleaner */
    transition: color 0.3s ease;
    white-space: nowrap; /* Forces the text to stay on one line */
}

/* Add this to make the scroll smooth when you click "Projects" */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents header from covering the section title */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

/* 3. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-image {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

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

/* 4. Sections & Components */
section { padding: 6rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-item {
    margin-bottom: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.timeline-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.timeline-company { color: var(--primary); font-weight: 700; margin-bottom: 1.5rem; display: block;}

/* Brands Grid */
.brands-worked { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px dashed #e2e8f0; }
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.brand-logo {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo:hover { border-color: var(--primary); transform: translateY(-3px); }
.brand-logo:hover img { filter: grayscale(0%); opacity: 1; }

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

.skill-card {
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.skill-card:hover {
    border-top-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .profile-image { width: 250px; height: 250px; margin-top: 2rem; }
    
    .timeline-item { padding: 1.5rem; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
}
