/* =========================================
   1. CUSTOM FONT SETUP
   ========================================= */
@font-face {
    font-family: 'FreakTurbulence';
    src: url('freak.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

/* =========================================
   2. GLOBAL VARIABLES & RESETS
   ========================================= */
:root {
    --byte-blue: #0056b3;
    --dark-navy: #002d5a;
    --light-bg: #f4f7f9;
    --text-main: #333;
    --white: #ffffff;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--white); 
}

/* =========================================
   3. NAVIGATION (Sticky)
   ========================================= */
nav {
    background: var(--dark-navy);
    padding: 1rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    color: white; 
    font-family: 'FreakTurbulence', sans-serif; 
    font-size: 2.2rem; /* 20% Bigger */
    letter-spacing: 2px;
}

nav .links a { 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    margin-left: 25px; 
    font-weight: 500; 
    font-size: 0.95rem;
    transition: 0.3s; 
}

nav .links a:hover { 
    color: white; 
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, rgba(0,45,90,0.95) 0%, rgba(0,86,179,0.9) 100%), 
                url('headerimage.jpg?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 { 
    font-family: 'FreakTurbulence', sans-serif; 
    font-size: 4rem; 
    margin-bottom: 20px; 
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--byte-blue);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.btn:hover { 
    background: #004494; 
    transform: translateY(-2px); 
}

/* =========================================
   5. GENERAL SECTIONS & GRID
   ========================================= */
section { 
    padding: 80px 10%; 
    text-align: center; 
}

.bg-light { 
    background: var(--light-bg); 
}

h2 { 
    margin-bottom: 50px; 
    color: var(--dark-navy); 
    font-size: 2.2rem; 
}

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

.card { 
    background: white; 
    padding: 40px 30px; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: 0.3s;
}

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

.card h3 {
    color: var(--byte-blue);
    margin-bottom: 15px;
}

/* =========================================
   6. ABOUT PAGE LAYOUT
   ========================================= */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.profile-img {
    width: 300px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

/* =========================================
   7. CONTACT FORM (Refined)
   ========================================= */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: left;
}

.bytesupport-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 0.9rem;
}

.bytesupport-form input[type="text"], 
.bytesupport-form input[type="email"], 
.bytesupport-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Removes legacy white boxes from FormMail Captcha */
.captcha-box {
    background: none !important;
    border: none !important;
    padding: 10px 0 !important;
    text-align: center;
}

/* Targets tables injected by FormMail script */
.captcha-box table, .captcha-box td {
    background: none !important;
    border: none !important;
    color: var(--text-main) !important;
    width: 100% !important;
}

#_fm_captcha_img {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.form-buttons { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
}

.btn-submit { 
    background: var(--byte-blue); 
    color: white; 
    border: none; 
    padding: 16px 30px; 
    border-radius: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    flex: 2; 
    font-size: 1rem;
    transition: 0.3s; 
}

.btn-reset { 
    background: #e0e0e0; 
    color: #666; 
    border: none; 
    padding: 16px 20px; 
    border-radius: 50px; 
    cursor: pointer; 
    flex: 1; 
}

.btn-submit:hover { 
    background: #004494; 
}

/* =========================================
   8. FOOTER
   ========================================= */
footer { 
    background: #111; 
    color: #777; 
    text-align: center; 
    padding: 60px 20px; 
    font-size: 0.9rem;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    nav { 
        flex-direction: column; 
        padding: 20px; 
    }
    
    nav .links { 
        margin-top: 15px; 
    }
    
    nav .links a {
        margin: 0 10px;
    }

    .logo {
        font-size: 1.8rem; /* Slightly smaller for mobile screens */
    }

    .hero h1 { 
        font-size: 2.8rem; 
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}