/* 
   Project Velocity: Cinematic Portfolio 
   Style: Elegant Navy & Executive
*/

:root {
    /* Color Palette */
    --primary-navy: #0a192f;       
    --secondary-blue: #112240;     
    --accent-gold: #FFD700;        /* Brighter Gold for better visibility */
    --accent-slate: #cfd8e6;       /* Lighter slate for better contrast */
    --white: #e6f1ff;              
    --pure-white: #ffffff;
    
    --exec-blue: #0f172a;
    --exec-grey: #f8fafc;

    /* Fonts - More Elegant & Clean */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: auto; /* Handled by Lenis for smooth scroll */
}

body {
    font-family: var(--font-body);
    background-color: var(--exec-blue);
    color: var(--accent-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.text-center { text-align: center; }
.text-white { color: var(--pure-white) !important; }
.text-white-50 { color: rgba(255,255,255,0.8); } /* Increased opacity for readability */
.dark-bg { background-color: var(--primary-navy); }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--accent-gold);
}

.menu-toggle { display: none; }

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,25,47,0.95) 0%, rgba(17,34,64,0.9) 100%);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background-color: var(--pure-white);
    color: var(--primary-navy);
}

.about-section .section-title { color: var(--primary-navy); }
.about-section p { color: var(--secondary-blue); font-size: 1.1rem; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-mask {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 20px 20px 0px var(--secondary-blue);
    width: 100%;
    max-width: 400px;
}

.stats-list {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Skills Section - Improved Contrast & Layout */
.skills-section { /* Uses dark-bg */
    padding: var(--section-padding);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-bar-item {
    margin-bottom: 35px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.05rem; /* Larger Font */
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 12px; /* Thicker Bar */
    background: rgba(255, 255, 255, 0.2); /* High Contrast Track */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, var(--accent-gold) 100%); /* Gold Gradient */
    width: 0;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Experience Section */
.experience-section {
    padding: var(--section-padding);
    background-color: var(--exec-blue);
}

.experience-section .section-title {
    color: var(--white);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255,255,255,0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--exec-blue);
    border: 4px solid var(--accent-gold);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px; 
}

.timeline-content {
    background: rgba(255,255,255,0.05); /* Darker transparent background */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white); /* Bright White Title */
}

/* Specific text color for description - "Off-white but not too white" */
.timeline-desc {
    color: #cbd5e1 !important; /* Slate-300: Soft, readable grey-white */
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Specific text color for company name/subtitle */
.text-white-50 {
    color: #94a3b8 !important; /* Slate-400: Slightly darker for hierarchy */
    font-weight: 600;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--section-padding);
    background-color: var(--pure-white);
}

.portfolio-section .section-title { color: var(--primary-navy); }

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 { color: var(--primary-navy); font-size: 1.3rem; margin-bottom: 0.5rem;}
.project-info p { color: var(--secondary-blue); margin-bottom: 1rem; }

.tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--secondary-blue);
    color: var(--accent-gold);
    font-size: 0.75rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Contact Styles */
.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.address-box {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 800px;
}

.address-box h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.map-container {
    overflow: hidden;
    border-radius: 12px;
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    background-color: #020c1b;
    color: var(--accent-slate);
    font-size: 0.9rem;
}

/* Loader */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-text {
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-weight: bold;
    font-family: var(--font-heading);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .hero-title { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image-wrapper { margin-bottom: 2rem; }
    .skills-wrapper { grid-template-columns: 1fr; }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left, .timeline-item.right { text-align: left; left: 0; }
    .timeline-item.left::after, .timeline-item.right::after { left: 21px; }
    
    .container { padding: 0 1.5rem; }
    .menu-toggle { display: block; color: var(--accent-gold); cursor: pointer; }
    
    .stats-list { justify-content: center; gap: 30px; }
}
