/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* General Styles */
body {
    font-family: 'Cairo', sans-serif;
    padding-top: 76px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/main.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    margin-top: -76px;
}

/* Sections */
section {
    padding: 80px 0;
    border-bottom: 3px solid #000000;
}

/* Cards */
.card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #fff !important;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: rgba(0, 0, 0, 0.8) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-primary {
    padding: 10px 25px;
    border-radius: 25px;
}

/* Form Controls */
.form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Footer */
footer {
    background-color: #343a40;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1, .hero p {
    animation: fadeIn 2s ease-in;
}

/* Memories Container */
.memories-container {
    position: relative;
    height: 300px;
    margin-top: 40px;
}

.memory-link {
    display: block;
    position: absolute;
    text-decoration: none;
}

.memory-img {
    position: absolute;
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.memory-1 {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 3;
}

.memory-2 {
    left: 39%;
    top: 40px;
    transform: translateX(-50%) rotate(-15deg);
    z-index: 2;
}

.memory-3 {
    left: 59%;
    top: 40px;
    transform: translateX(-50%) rotate(15deg);
    z-index: 1;
}

.memory-img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.memory-1:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-card {
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: white;
    transform: scale(1.1);
    z-index: 2;
}

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

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.main-card .icon-wrapper {
    background: white;
}

.icon-wrapper i {
    font-size: 30px;
    color: #007bff;
}

.main-card .icon-wrapper i {
    color: #0056b3;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.main-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Map Container */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* BTEC Logo */
.btec-logo {
    height: 40px;
    margin-right: 10px;
    margin-left: 10px;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

/* School Logo */
.school-logo {
    height: 40px;
    margin-left: 15px;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

/* تأثيرات حركية للأقسام */
.section-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1877f2;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btec-logo {
        height: 35px;
        margin-right: 5px;
        margin-left: 5px;
    }

    .navbar-collapse {
        background: #0056b3;
        padding: 10px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-brand {
        font-size: 0.9rem;
        padding: 5px 8px;
        margin-right: 0;
    }
    
    .school-logo {
        height: 30px;
        margin-left: 8px;
    }

    .main-card {
        transform: scale(1);
        margin: 20px 0;
    }
    
    .memories-container {
        height: 250px;
        overflow: hidden;
    }

    .memory-img {
        width: 200px;
        height: 150px;
    }

    .memory-3 {
        left: 55%;
    }
}

@media (max-width: 375px) {
    .navbar-brand {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .memory-img {
        width: 160px;
        height: 120px;
    }

    .memories-container {
        height: 200px;
    }

    .memory-2 {
        left: 35%;
    }

    .memory-3 {
        left: 65%;
        transform: translateX(-50%) rotate(10deg);
    }
}

footer h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

footer h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #007bff;
}
