/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Account for fixed header */
    overflow-x: hidden;
    font-size: 16px;
}

/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 30, 60, 0.9), rgba(0, 30, 60, 1)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-animation.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-animation p {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 30, 60, 0.98);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(102, 178, 255, 0.2);
}

header.scrolled {
    background-color: rgba(0, 30, 60, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.tagline {
    font-size: 0.9rem;
    margin: 5px 0 0;
    color: #66b2ff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #66b2ff;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a:hover {
    color: #66b2ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 30, 60, 0.85), rgba(0, 30, 60, 0.95)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tagline-options {
    font-style: italic;
    color: #66b2ff;
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #0055aa 0%, #003366 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 85, 170, 0.4);
    border: 2px solid #0055aa;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover:after {
    opacity: 1;
}

/* Corporate Introduction */
.corporate-intro {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.corporate-intro h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #003366;
}

.corporate-intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Subsidiary Sections */
.subsidiary {
    padding: 80px 0;
}

.jessr-al-arab {
    background-color: #ffffff;
}

.al-joud {
    background-color: #f0f5ff;
}

.subsidiary h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #003366;
}

.subsidiary h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #0055aa;
}

.subsidiary h4 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: #003366;
}

.subsidiary p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.subsidiary ul {
    list-style-type: none;
    margin-bottom: 2rem;
}

.subsidiary ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    list-style-position: inside;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.subsidiary ul li:before {
    content: '▶';
    color: #007bff;
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .subsidiary ul li:before {
        top: 12px;
        font-size: 0.7rem;
    }
}

.subsidiary ul li:last-child {
    border-bottom: none;
}

.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
    border: 2px solid #003366;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #001f3f 0%, #000f1f 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 31, 63, 0.6);
}

.btn-secondary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover:after {
    opacity: 1;
}

/* Vision & Mission */
.vision-mission {
    padding: 80px 0;
    background-color: #003366;
    color: white;
}

.vision-mission h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.vision, .mission {
    margin-bottom: 3rem;
}

.vision-mission p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: #001f3f;
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

footer p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
}

.subsidiaries-links a {
    color: #66b2ff;
    text-decoration: none;
    margin: 0 10px;
}

.subsidiaries-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    header .container {
        flex-direction: row;
        text-align: left;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 30, 60, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: 0.3s;
        z-index: 1000;
        margin-top: 0;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .tagline-options {
        font-size: 1.1rem !important;
    }
    
    .corporate-intro h2,
    .subsidiary h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .vision, .mission {
        margin-bottom: 2rem;
    }
    
    .subsidiary ul li {
        padding: 10px 0;
        padding-left: 20px;
    }
    
    footer h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        clip-path: none;
    }
    
    footer {
        clip-path: none;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .tagline-options {
        font-size: 1rem !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .corporate-intro h2,
    .subsidiary h2 {
        font-size: 1.5rem;
    }
    
    .subsidiary h3 {
        font-size: 1.2rem;
    }
    
    .subsidiary ul li {
        font-size: 1rem;
        padding-left: 15px;
    }
    
    footer h2 {
        font-size: 1.3rem;
    }
    
    nav ul li {
        margin: 3px 5px;
        font-size: 0.9rem;
    }
}

/* Medium devices (tablets, 768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .container {
        max-width: 750px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .corporate-intro h2,
    .subsidiary h2 {
        font-size: 2.2rem;
    }
}