/* General Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    background-color: #0b1a3d;
    color: #ffffff;
}

section {
    padding: 100px 20px;
    position: relative; /* Ensures sections sit above the fixed background */
    z-index: 5;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
}

html {
    scroll-behavior: smooth;
}

/* Scroll offset fix for fixed navbar */
:target::before {
    content: "";
    display: block;
    height: 80px; /* navbar height */
    margin-top: -80px;
}


/* Navbar Styles */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(11, 26, 61, 0.95);
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.navbar .logo a:hover {
    color: #6b73ff;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
}

.navbar .nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00d9ff;
    transition: width 0.3s ease-out;
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
    width: 100%;
}

.navbar .nav-links a.active {
    color: #00d9ff;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: 0.4s;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0; /* Remove padding from hero container */
}

.hero h1 {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 700;
}

.hero h2.typing {
    font-size: 2.5rem;
    margin-top: 20px;
    min-height: 3rem;
    color: #00d9ff;
}


/* Fading Background Styles */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding-top: 80px; /* Offset for fixed navbar */
}

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

.bg-image.active {
    opacity: 1;
}


/* --- IMPORTANT: REPLACE THESE IMAGE PATHS --- */
.image1 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20241209_171209~2.jpg');
}

.image2 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20240904_184201.jpg');
}

.image3 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20241211_141332.jpg');
}

.image4 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20241211_144437.jpg');
}

.image5 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20250513_122740.jpg');
}

.image6 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20250513_123056.jpg');
}

.image7 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20250514_092645.jpg');
}

/* This is the placeholder for your 8th image */
.image8 {
    background-image: linear-gradient(rgba(11,26,61,0.6), rgba(11,26,61,0.6)),
                      url('../images/20250514_134216.jpg');
}


/* Cards Layout */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    flex: 1 1 250px;
    max-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.testimonial-card {
    background-color: rgba(107, 115, 255, 0.1);
}


/* Contact Form */
.contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}

.contact input, .contact textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.contact button {
    padding: 10px;
    border: none;
    background-color: #6b73ff;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #5a61d1;
}


/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(11, 26, 61, 0.95);
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 50px;
    position: relative;
    z-index: 5;
}

/* === Social Media Section Styles === */
.socials {
    background-color: rgba(0, 0, 0, 0.2); /* A slightly different background to stand out */
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Space between the icons */
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Makes the link circular */
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-link i {
    font-size: 28px; /* Icon size */
    color: #ffffff;
}

/* Hover effect for the icons */
.social-link:hover {
    background-color: #6b73ff; /* Highlight color on hover */
    transform: translateY(-5px); /* Lifts the icon up slightly */
}
/* Responsive Adjustments */
@media(max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 15px 20px;
    }
    .navbar.scrolled {
        padding: 10px 20px;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px; /* Adjusted top position */
        height: calc(100vh - 60px);
        width: 60%;
        background-color: rgba(11, 26, 61, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    /* Hero Text */
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero h2.typing {
        font-size: 1.8rem;
    }

    /* Cards */
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}