/* ---
Brand Identity: Escape Velocity Ventures
Date: July 30, 2025
--- */

/* --- Global Styles & Brand Variables --- */
:root {
    /* --- Official Brand Colors --- */
    --brand-bulgarian-rose: #9B0D39;
    --brand-milk-white: #FFFFFF;

    /* --- Light Theme Palette --- */
    --bg-header: #D1D5DB;
    --bg-primary: #F4F4F5;
    --bg-secondary: #E4E4E7;
    --border: #D4D4D8;
    --text-primary: #111827;
    --text-secondary: #000000;
    --accent-primary: var(--brand-bulgarian-rose);

    /* --- Font Variables --- */
    --header-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header height */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--header-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: filter 0.3s ease;
}
a:hover {
    filter: brightness(1.3);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

/* --- Header & Logo --- */
.main-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
}
.logo:hover {
    filter: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    stroke: var(--text-primary);
}

.logo-text-main {
    display: block;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}
.logo-text-sub {
    display: block;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* --- Navigation --- */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: var(--header-font);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    background-color: var(--accent-primary);
    color: var(--brand-milk-white);
    border-color: var(--accent-primary);
}
.cta-button:hover {
    background-color: var(--brand-milk-white);
    color: var(--accent-primary);
    border-color: var(--brand-milk-white);
}

.cta-button-nav {
    font-weight: 700;
    color: var(--accent-primary);
    background-color: transparent;
    border: none;
    padding: 0.5rem 0;
}
.cta-button-nav:hover {
    color: var(--accent-primary);
    filter: brightness(1.3);
    border-bottom-color: transparent;
}
.main-nav a.cta-button-nav.active {
    border-bottom: 2px solid var(--accent-primary);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}
.cta-button-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--brand-milk-white);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}
.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-title .cta-button-secondary {
    margin-top: 1rem;
}

/* --- Hero Section --- */
#home.hero, .hero {
    background-image:
        linear-gradient(rgba(228, 228, 231, 0.85), rgba(228, 228, 231, 0.85)),
        url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=1600&q=80');
    padding: 8rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
    opacity: 0.9;
}

/* --- Services Section --- */
#services, .alt-background { 
    padding: 5rem 0; 
    background-color: var(--bg-secondary); 
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(155, 13, 57, 0.2);
    border-color: var(--accent-primary);
}
.service-icon {
    height: 80px;
    width: 80px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

/* --- Portfolio Section (Tabbed Layout) --- */
#portfolio { 
    padding: 5rem 0; 
    background-image:
        linear-gradient(rgba(244, 244, 245, 0.9), rgba(244, 244, 245, 0.9)),
        url('https://images.unsplash.com/photo-1517420704952-d9f39e95b412?auto=format&fit=crop&w=1600&q=80');
}
.portfolio-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
}
.portfolio-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.portfolio-tab {
    background: none;
    border: none;
    border-left: 3px solid var(--border);
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: var(--header-font);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.portfolio-tab:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}
.portfolio-tab.active {
    border-left-color: var(--accent-primary);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}
.portfolio-pane {
    display: none;
    gap: 2rem;
    animation: fadeIn 0.5s ease-in-out;
    background-color: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.portfolio-pane.active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.portfolio-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 300px;
}
.portfolio-text h3 {
    margin-bottom: 1.5rem;
}
.portfolio-text p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- About Section --- */
#about { 
    padding: 5rem 0; 
    background-color: var(--bg-secondary);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.profile-pic {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    justify-self: center;
}
.about-text h3 {
    font-size: 1.8rem;
}

/* --- Contact Section --- */
#contact { 
    padding: 5rem 0; 
    background-image:
        linear-gradient(rgba(244, 244, 245, 0.95), rgba(244, 244, 245, 0.95)),
        url('https://images.unsplash.com/photo-1484589065579-248aad0d8b13?auto=format&fit=crop&w=1600&q=80');
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.contact-info ul { list-style: none; margin-top: 1.5rem; }
.contact-info li { margin-bottom: 1.5rem; }
.contact-info li strong { display: block; font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.25rem; }

#contact-form { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-group { width: calc(50% - 0.5rem); }
.form-group.full-width { width: 100%; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(155, 13, 57, 0.3);
}

/* --- Tool Library Page --- */
.tool-library { padding: 5rem 0; }
.tool-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.primary-filters {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.secondary-filters {
    width: 100%;
    display: none; /* Hidden by default */
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.secondary-filters.active {
    display: flex;
}
.tool-filter-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--header-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tool-filter-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.tool-filter-btn.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--brand-milk-white);
}
.secondary-filters .tool-filter-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.tool-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.tool-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}
.tool-platform {
    font-size: 0.8rem;
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    color: var(--text-secondary);
}
.tool-card h3 { font-size: 1.25rem; }
.tool-card p { flex-grow: 1; }
.tool-download-btn { width: 100%; margin-top: 1rem; }

/* --- Password Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }
.modal-content {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border);
}
.modal-close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.password-error {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}
.password-error.visible {
    display: block;
}

/* --- Policy Page --- */
.policy-page .page-header h1 {
    font-size: 3rem;
    color: var(--accent-primary);
}
.policy-content {
    padding: 4rem 0;
}
.policy-content .container {
    max-width: 1000px; /* Wider for less vertical height */
}
.policy-content h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.policy-content h3 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}
.policy-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}
.footer-content {
    text-align: center;
}
.main-footer h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.footer-contact-info {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-contact-info li {
    display: flex;
    align-items: center;
}
.footer-contact-info a {
    color: var(--text-secondary);
    font-weight: 500;
}
.footer-contact-info a:hover {
    color: var(--accent-primary);
    filter: none;
}
.footer-contact-info i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}
.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p, .footer-bottom a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    .portfolio-tabs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--border);
        margin-bottom: 2rem;
    }
    .portfolio-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        margin-bottom: -1px; /* Overlap border */
    }
    .portfolio-tab.active {
        border-left: none;
        border-bottom-color: var(--accent-primary);
    }
    .portfolio-pane.active {
        grid-template-columns: 1fr;
    }
    .portfolio-image {
        height: 250px;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px; /* Mobile header height */
    }
    section {
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
    .nav-wrapper {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 77px;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }
    .nav-wrapper.active { display: flex; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; width: 100%; text-align: center; gap: 0; }
    .main-nav li { width: 100%; }
    .main-nav a { display: block; padding: 1rem; border-bottom: none; color: var(--text-primary)}
    .main-nav a:hover, .main-nav a.active {
        background-color: var(--bg-secondary);
        color: var(--accent-primary);
        border-bottom: none;
    }
    .hamburger { display: block; }
    h1 { font-size: 2.2rem; }
    .hero { padding: 5rem 0; }
    .section-title h2 { font-size: 2rem; }
    .contact-grid { padding: 1.5rem; }
    .form-group { width: 100%; }
    .footer-contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }



}


.logo {
    display: flex;
    align-items: center; /* Vertically centers the images */
    gap: 12px;           /* Adds space between the icon and the text */
}

.logo-image {
    height: 65px;       /* Controls the size - adjust this number as needed */
    width: auto;        /* Maintains the correct aspect ratio */
    display: block;     /* Removes extra inline spacing */
}


.logo-text-image {
    height: 50px;       /* Controls the size - adjust this number as needed */
    width: auto;        /* Maintains the correct aspect ratio */
    display: block;     /* Removes extra inline spacing */
}

/* Optional: Adjust for mobile screens if they still look too big there */
@media (max-width: 768px) {
    .logo-image, 
    .logo-text-image {
        height: 40px;   /* Slightly smaller on mobile */
    }
}