/* Gulf Skill Development Center - Main Stylesheet */

/* ============================================
   CSS Variables (Color Palette & Typography)
   ============================================ */
:root {
    /* Colors */
    --navy-blue: #002B5B;
    --gulf-green: #0FA958;
    --golden-accent: #D4A73C;
    --light-gray: #F7F7F7;
    --gulf-blue: #003E6C;
    --white: #FFFFFF;
    --dark-text: #333333;
    --light-text: #666666;
    
    /* Typography */
    --font-heading: 'Poppins', 'Montserrat', sans-serif;
    --font-body: 'Open Sans', 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--navy-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--gulf-green);
    transition: var(--transition);
}

a:hover {
    color: var(--golden-accent);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.top-bar-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-bar a:hover {
    color: var(--golden-accent);
}

.top-bar-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    height: 90px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.logo-text .company-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-blue);
    white-space: nowrap;
}

.logo-text .company-tagline {
    font-size: 0.7rem;
    color: var(--light-text);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.625rem 1rem;
    white-space: nowrap;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    text-decoration: none;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: #357ABD;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.05) 100%);
    transform: translateY(-2px);
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li a.active {
    color: #357ABD;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(53, 122, 189, 0.1) 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

nav ul li a.active::before {
    width: 100%;
    height: 3px;
}

/* Blinking animation for Live Test menu item */
nav ul li a.nav-blink {
    animation: blink 2s infinite;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(53, 122, 189, 0.15) 100%);
    font-weight: 600;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 2px 12px rgba(74, 144, 226, 0.5);
    }
}

.btn-apply {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-apply:hover::before {
    left: 100%;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5F8F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-apply:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 167, 60, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy-blue);
    padding: 0.5rem;
    margin-left: auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5F8F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 167, 60, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #001d3d 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 43, 91, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #003d6c 0%, var(--navy-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 43, 91, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 43, 91, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #4A90E2;
    color: #4A90E2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--white);
    border-color: #4A90E2;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 169, 88, 0.3);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 43, 91, 0.7), rgba(0, 43, 91, 0.7));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.hero-buttons .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hero Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    line-height: 1;
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-arrow-left {
    left: 2rem;
}

.hero-arrow-right {
    right: 2rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh; /* Reduced from 80vh */
    }
    
    .hero-arrow {
        width: 45px; /* Reduced from 50px */
        height: 45px;
        font-size: 2rem; /* Reduced from 2.5rem */
    }
    
    .hero-arrow-left {
        left: 0.5rem; /* Closer to edge */
    }
    
    .hero-arrow-right {
        right: 0.5rem;
    }
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrapper,
.contact-info-wrapper {
    width: 100%;
}

/* ============================================
   Cards & Grids
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Ensure cards don't shrink below minimum */
.cards-grid .card {
    min-width: 0;
}

/* Tablet: 2 columns (768px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    color: var(--navy-blue);
    margin-bottom: var(--spacing-xs);
}

.card p {
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card .card-button {
    margin-top: auto;
    padding-top: var(--spacing-sm);
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-item-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-item h3 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-item-light {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-item-light h3 {
    color: var(--navy-blue);
    margin-bottom: var(--spacing-xs);
}

.feature-item-light p {
    color: var(--light-text);
}

/* ============================================
   Forms
   ============================================ */
.admissions-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.requirements-info {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.requirements-info h2 {
    color: var(--navy-blue);
    margin-bottom: var(--spacing-sm);
}

.requirements-info ul {
    list-style: none;
    padding: 0;
}

.requirements-info ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gulf-green);
    font-weight: bold;
}

form {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: var(--gulf-green);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gulf-green);
    box-shadow: 0 0 0 3px rgba(15, 169, 88, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background-color: #fafafa;
}

legend {
    font-weight: 600;
    color: var(--navy-blue);
    padding: 0 var(--spacing-sm);
    font-size: 1.125rem;
}

.checkbox-group {
    margin: var(--spacing-md) 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Form Submit Buttons */
input[type="submit"],
button[type="submit"],
.form-actions .btn {
    min-width: 180px;
}

input[type="submit"]:not(.btn),
button[type="submit"]:not(.btn) {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
}

input[type="submit"]:not(.btn)::before,
button[type="submit"]:not(.btn)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

input[type="submit"]:not(.btn):hover::before,
button[type="submit"]:not(.btn):hover::before {
    left: 100%;
}

input[type="submit"]:not(.btn):hover,
button[type="submit"]:not(.btn):hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5F8F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}

input[type="submit"]:not(.btn):active,
button[type="submit"]:not(.btn):active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 167, 60, 0.3);
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-wrapper {
    margin-bottom: var(--spacing-md);
}

.file-upload-area {
    border: 2px dashed #4A90E2;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(53, 122, 189, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s;
}

.file-upload-area:hover {
    border-color: #357ABD;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.file-upload-area:hover::before {
    left: 100%;
}

.file-upload-area.dragover {
    border-color: #357ABD;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(53, 122, 189, 0.08) 100%);
    transform: scale(1.02);
}

.file-upload-area label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-text);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 1rem;
    color: var(--navy-blue);
    font-weight: 600;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--light-text);
    font-weight: normal;
}

.file-upload-area small {
    display: block;
    margin-top: 0.5rem;
    color: var(--light-text);
}

.file-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid #4A90E2;
    margin-top: 0.5rem;
}

.file-preview.active {
    display: flex;
}

.file-icon {
    font-size: 2rem;
}

.file-name {
    flex: 1;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    word-break: break-word;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-change,
.btn-delete {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.btn-change {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.btn-change:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5F8F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-change:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 167, 60, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-delete:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--golden-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.social-icons a:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 12px rgba(74, 144, 226, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .two-column-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .logo-text .company-name {
        font-size: 1rem;
    }
    
    .logo-text .company-tagline {
        font-size: 0.65rem;
    }
    
    nav ul li a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn-apply {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

/* Services Grid Responsive */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* What We Do / Services / Who We Are Section Styling */
.services-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.service-card {
    padding: 1.5rem;
}

.service-card h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

.service-card p {
    color: var(--dark-text);
    line-height: 1.8;
    text-align: left;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 992px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    * {
        max-width: 100%;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem; /* Reduced from 2rem */
    }
    
    /* Section padding */
    section {
        padding: 2rem 0; /* Reduced from 4rem */
    }
    
    /* Menu Toggle */
    .menu-toggle {
        display: block;
        font-size: 2rem; /* Larger toggle button */
        padding: 0.75rem;
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem; /* Better spacing */
    }
    
    .service-card {
        padding: 1.25rem; /* Slightly reduced */
    }
    
    .service-card h3 {
        font-size: 1.5rem; /* Reduced from 1.75rem */
    }
    
    /* Header Content */
    .header-content {
        height: auto;
        padding: 1rem 0; /* Increased padding for better spacing */
        flex-wrap: nowrap; /* Keep logo and menu on same line */
        gap: 1rem;
        align-items: center; /* Ensure vertical alignment */
        min-height: 70px; /* Ensure enough height for wrapped text */
    }
    
    .logo a {
        display: flex;
        align-items: center;
        gap: 0.75rem; /* Increased gap for better spacing */
        min-width: 0;
        flex: 1;
        max-width: calc(100% - 60px); /* Leave space for hamburger menu */
    }
    
    /* Navigation */
    nav {
        flex-shrink: 0; /* Don't shrink the menu button */
        margin-left: auto; /* Push to the right */
        order: 2; /* Keep menu button on the right */
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
        width: 100%;
        margin-top: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: 1.25rem 1rem; /* Increased for better touch target */
        width: 100%;
        text-align: left;
        font-size: 1rem; /* Increased from default */
        min-height: 48px; /* Minimum touch target */
        display: flex;
        align-items: center;
    }
    
    nav ul li a.active {
        background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(53, 122, 189, 0.15) 100%);
        border-left: 4px solid #4A90E2;
        padding-left: calc(1rem - 4px);
    }
    
    nav ul li a.active::before {
        display: none;
    }
    
    .btn-apply {
        display: none;
    }
    
    /* Logo */
    .logo {
        flex: 1;
        min-width: 0; /* Allow text to shrink */
        display: flex;
        align-items: center;
    }
    
    .logo img {
        height: 50px; /* Slightly larger for better visibility */
        flex-shrink: 0;
    }
    
    .logo-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        margin-left: 0.75rem;
        flex: 1; /* Allow it to take available space */
    }
    
    .logo-text .company-name {
        font-size: 1rem !important; /* Better readable size for mobile */
        font-weight: 700;
        color: var(--navy-blue);
        white-space: normal; /* Allow wrapping */
        overflow: visible; /* Show full text */
        text-overflow: clip; /* Remove ellipsis */
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        max-width: none; /* Remove width restriction */
    }
    
    .logo-text .company-tagline {
        display: none; /* Hide tagline on mobile to save space */
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 1.75rem; /* Reduced from 2rem */
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem; /* Slightly reduced */
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        flex: 0 1 auto;
        min-width: 140px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-height: 48px; /* Minimum touch target */
    }
    
    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Two Column Layout */
    .two-column-layout,
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .contact-info-wrapper {
        margin-top: 2rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem; /* Better touch target */
    }
    
    button[type="submit"],
    .btn {
        min-height: 48px; /* Minimum touch target */
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .top-bar-left span {
        font-size: 0.75rem; /* Reduced from 0.8rem */
        white-space: normal; /* Allow wrapping */
        line-height: 1.4;
        text-align: center;
    }
    
    .top-bar-right a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Typography */
    h1 { 
        font-size: 1.75rem; /* Reduced from 2rem */
        line-height: 1.3;
    }
    
    h2 { 
        font-size: 1.5rem; /* Reduced from 1.75rem */
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h3 { 
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem !important; /* Reduced from 2.5rem */
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    /* Google Maps */
    section iframe[src*="google.com/maps"],
    .map-container iframe,
    .maps-container iframe {
        height: 300px !important; /* Reduced from 450px */
    }
    
    /* ISO Certificate iframe */
    section div[style*="height: 800px"],
    .iso-certificate-container {
        height: 400px !important;
    }
    
    section div[style*="height: 800px"] iframe,
    .iso-certificate-container iframe {
        height: 100% !important;
    }
    
    /* For small screens, allow wrapping but keep readable */
    @media (max-width: 480px) {
        .logo-text .company-name {
            font-size: 0.95rem !important;
        }
    }
    
    /* For extra small screens, allow wrapping */
    @media (max-width: 360px) {
        .logo-text .company-name {
            font-size: 0.9rem !important;
        }
    }
}


/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

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

.bg-dark {
    background-color: var(--navy-blue);
    color: var(--white);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-top: var(--spacing-md);
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-top: var(--spacing-md);
    text-align: center;
}

/* E-Brochure Section Responsive */
@media (max-width: 768px) {
    .ebrochure-section {
        padding: 1.5rem !important;
    }
    
    .ebrochure-section > div {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .ebrochure-section img {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto !important;
    }
}
