:root {
    --primary-blue: #1e5cff;
    --secondary-blue: #0b32a8;
    --bg-color: #ffffff;
    --surface-color: #f8f9fc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

h1 { 
    font-size: 3.5rem; 
    line-height: 1.2; 
    letter-spacing: -0.03em; 
    margin-bottom: 1.5rem; 
}

h2 { 
    font-size: 2.5rem; 
    letter-spacing: -0.02em; 
    margin-bottom: 1rem; 
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.5rem; 
}

.text-gradient { 
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 4rem; 
}

.section-header p { 
    color: var(--text-light); 
    max-width: 600px; 
    margin: 0 auto; 
}

.btn { 
    display: inline-block; 
    padding: 1rem 2rem; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    border: none; 
    text-align: center; 
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); 
    color: white; 
    box-shadow: 0 10px 20px rgba(30, 92, 255, 0.2); 
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 15px 25px rgba(30, 92, 255, 0.3); 
}

.btn-outline { 
    border: 2px solid var(--text-dark); 
    color: var(--text-dark); 
    background: transparent; 
}

.btn-outline:hover { 
    background: var(--text-dark); 
    color: white; 
}

nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--glass-bg); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--glass-border); 
    z-index: 1000; 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.logo i { 
    color: var(--primary-blue); 
    font-size: 1.8rem; 
    transform: rotate(45deg); 
}

.nav-links { 
    display: flex; 
    gap: 2rem; 
    font-weight: 500; 
}

.nav-links a:hover { 
    color: var(--primary-blue); 
    transition: 0.3s; 
}

.nav-links a.active { 
    color: var(--primary-blue); 
    font-weight: 700; 
}

section { 
    padding: 8rem 5% 4rem; 
}

.hero-section { 
    padding-top: 12rem; 
    min-height: 80vh; 
    text-align: center; 
}

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

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

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

.card { 
    background: var(--surface-color); 
    padding: 2.5rem; 
    border-radius: 24px; 
    border: 1px solid rgba(0,0,0,0.03); 
    transition: all 0.3s ease; 
    box-shadow: var(--shadow); 
}

.card:hover { 
    transform: translateY(-5px); 
    background: white; 
    border: 1px solid rgba(30, 92, 255, 0.1); 
}

.card-icon { 
    font-size: 2rem; 
    color: var(--primary-blue); 
    margin-bottom: 1.5rem; 
    display: block; 
}

.card ul { 
    margin-top: 1rem; 
    color: var(--text-light); 
}

.card ul li { 
    margin-bottom: 0.5rem; 
    padding-left: 1.5rem; 
    position: relative; 
}

.card ul li::before { 
    content: ' '; 
    position: absolute; 
    left: 0; 
    color: var(--primary-blue); 
    font-weight: bold; 
}

.portfolio-card { 
    overflow: hidden; 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
}

.portfolio-img { 
    width: 100%; 
    height: 200px; 
    background: #e2e8f0; 
    object-fit: cover; 
}

.portfolio-content { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
}

.portfolio-content p { 
    color: var(--text-light); 
    margin-bottom: 1.5rem; 
}

.contact-form { 
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    padding: 3rem; 
    border-radius: 24px; 
    box-shadow: var(--shadow); 
    border: 1px solid rgba(0,0,0,0.03); 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.form-control { 
    width: 100%; 
    padding: 1rem; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    font-family: inherit; 
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary-blue); 
    box-shadow: 0 0 0 3px rgba(30, 92, 255, 0.1); 
}

.checkbox-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1rem; 
}

.checkbox-label { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-weight: 500; 
    cursor: pointer; 
    color: var(--text-light); 
}

.contact-info-footer { 
    text-align: center; 
    margin-top: 4rem; 
    padding-top: 4rem; 
    border-top: 1px solid #e2e8f0; 
}

.contact-info-footer p { 
    margin-bottom: 0.5rem; 
    color: var(--text-light); 
}

.contact-info-footer h3 { 
    margin-bottom: 0.2rem; 
}

footer { 
    background: var(--text-dark); 
    color: white; 
    padding: 4rem 5% 2rem; 
    text-align: center; 
    margin-top: 4rem; 
}

.footer-socials { 
    margin: 2rem 0; 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem;
}

.footer-socials i { 
    font-size: 1.5rem; 
    cursor: pointer; 
    transition: 0.3s;
}

.footer-socials i:hover { 
    color: var(--primary-blue); 
}

.gsap-reveal { 
    opacity: 0; 
    visibility: hidden; 
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
========================================= */
@media (max-width: 768px) { 
    /* Typography adjustments for smaller screens */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    
    /* Global spacing adjustments */
    section { padding: 3rem 5% 2rem !important; }
    .card { padding: 1.5rem !important; }

    /* Force Nav bar into one row */
    nav { 
        flex-direction: row !important; 
        padding: 10px !important; 
        position: fixed !important; 
        gap: 15px !important;
        overflow-x: auto !important; /* Allows swiping left/right if screen is too narrow */
        white-space: nowrap !important;
        justify-content: flex-start !important;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    /* Hide scrollbar for a cleaner look */
    nav::-webkit-scrollbar {
        display: none;
    }

    .logo { 
        margin-left: 0 !important; 
        flex-shrink: 0 !important;
    }
    
    .logo img {
        height: 30px !important; /* Scale logo down slightly to fit */
    }
    
    .nav-links { 
        display: flex !important; 
        flex-wrap: nowrap !important; 
        gap: 12px !important; 
        align-items: center !important;
    }
    
    .nav-links a {
        font-size: 0.85rem !important; /* Scale text down slightly */
    }
    
    nav .btn { 
        width: auto !important; 
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }

    /* Adjust hero spacing */
    .hero-section { 
        padding-top: 6rem !important; 
        min-height: auto !important; 
    }

    /* Force all grids into a single full-width column on mobile */
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem !important;
    }

    /* Contact form optimizations */
    .contact-form { padding: 1.5rem !important; }
    .checkbox-grid { grid-template-columns: 1fr !important; }
    .form-control { width: 100% !important; }

    /* Fix <pre> tags causing horizontal scrolling in footer & portfolio */
    pre {
        white-space: pre-wrap !important; 
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center;
    }
    footer pre {
        font-size: 0.8rem !important;
    }
}
/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
========================================= */
@media (max-width: 768px) { 
    /* Typography adjustments for smaller screens */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    
    /* Global spacing adjustments */
    section { padding: 3rem 5% 2rem !important; }
    .card { padding: 1.5rem !important; }

    /* Force Nav bar into one row and fit on screen */
    nav { 
        flex-direction: row !important; 
        padding: 10px 5px !important; 
        position: fixed !important; 
        gap: 5px !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        overflow: hidden !important; /* Prevent scroll, force everything to fit */
    }
    
    .logo { 
        margin-left: 0 !important; 
        gap: 5px !important;
    }
    
    .logo img {
        height: 22px !important; /* Scale logo down to save space */
    }
    
    .nav-links { 
        display: flex !important; 
        flex-wrap: nowrap !important; 
        gap: 8px !important; 
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-links a {
        font-size: 0.7rem !important; /* Scale link text down */
        padding: 0 !important;
    }
    
    nav .btn { 
        width: auto !important; 
        padding: 6px 8px !important;
        font-size: 0.65rem !important; /* Scale button text down so the long text fits */
        border-radius: 20px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Adjust hero spacing */
    .hero-section { 
        padding-top: 6rem !important; 
        min-height: auto !important; 
    }

    /* Force all grids into a single full-width column on mobile */
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem !important;
    }

    /* Contact form optimizations */
    .contact-form { padding: 1.5rem !important; }
    .checkbox-grid { grid-template-columns: 1fr !important; }
    .form-control { width: 100% !important; }

    /* Fix <pre> tags causing horizontal scrolling in footer & portfolio */
    pre {
        white-space: pre-wrap !important; 
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center;
    }
    footer pre {
        font-size: 0.8rem !important;
    }
}