/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gilroy', sans-serif;
}

@font-face {
    font-family: Bahij-Janna-Bold;
    src: url('../Bahij-Janna-Bold.ttf');
    font-weight: normal;
    font-style: normal;
  }

  body {
  margin: 0;
  font-family: "Nunito", Bahij-Janna-Bold;
  /* font-size: 14px; */
  /* font-weight: 200; */
  /* //  line-height: 1.6; */
  /* color: #212529; */
  /* text-align: right; */
  /* background-color: #f8fafc; */
  }

  h5,h4,h3,h2,h1,li,a,p,div,span {
    font-family: "Nunito", Bahij-Janna-Bold !important;
  }

body {
    overflow-x: hidden;
    font-size: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.hero-background-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1439px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

.logo {
    object-fit: contain;
    width: 150px;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(32px, 10vw, 128px);
    color: white;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-size: clamp(18px, 4vw, 40px);
    line-height: 1.2;
    color: white;
    font-weight: 200;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

/* About Us Section */
.about-us {
    padding: 60px 20px;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    color: black;
    line-height: 1.1;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 30px;
}

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

.card {
    position: relative;
    width: 100%;
    max-width: 48%;
    height: 250px;
    min-height: 250px;
    border-radius: 16px;
    overflow: hidden;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front {
    background-color: #f8f8f8;
}

.card-back {
    background-color: #162398;
    color: white;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.card-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 20px;
}

.card-content p {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
}

/* Card specific colors */
.card.blue .card-front {
    background: #162398;
    color: white;
}

.card.white .card-front {
    background-color: white;
    color: black;
    border: 3px solid rgba(0, 0, 0, 0.3);
}

.card.green .card-front {
    background-color: #16a34a;
    color: white;
}

.card.blue .card-back {
    background: #162398;
}

.card.white .card-back {
    background-color: white;
    color: black;
    border: 3px solid rgba(0, 0, 0, 0.3);
}

.card.green .card-back {
    background-color: #16a34a;
}

/* Iraq Energy Conference Section */
#iraq-energy-hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.iec-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.iec-background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iec-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.40);
}

.iec-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    color: white;
    padding: 20px;
}

.iec-title {
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.iec-title-line {
    display: block;
    font-size: clamp(40px, 6vw, 128px);
    font-weight: 900;
    line-height: 1.1;
}

.iec-subtitle {
    line-height: 1.3;
    margin-bottom: 30px;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 400;
}

.iec-button-container {
    display: flex;
    justify-content: center;
}

.iec-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #162398;
    color: white;
    border: none;
    border-radius: 29px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: clamp(16px, 2vw, 24px);
}

.iec-register-button:hover {
    background-color: #1e2db0;
}

/* Membership Section */
.membership {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.membership-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.membership-heading {
    font-weight: 700;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    color: black;
}

.membership-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.membership-description {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: black;
}

.button-container {
    width: 100%;
    max-width: 200px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    width: 100%;
    background-color: #162398;
    color: white;
    border-radius: 29px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1e2db0;
}

/* Footer Section */
.footer {
    padding: 60px 20px 30px;
    background-color: #0f172a;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column span {
    font-size: 16px;
    line-height: 1.5;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.8;
}

.copyright {
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #1c1c1c;
    top: 100%;
    left: 0;
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-menu a,
.dropdown-menu .future-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #333;
}

.future-event {
    cursor: default;
}

.event-with-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.css-clock {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid white;
    position: relative;
    display: inline-block;
}

.css-clock::before,
.css-clock::after {
    content: "";
    position: absolute;
    left: 50%;
    background-color: white;
    width: 1px;
    transform-origin: bottom center;
    opacity: 0.8;
}

.css-clock::before {
    height: 5px;
    top: 3px;
    animation: rotate-hour 60s linear infinite;
    transform: translateX(-50%) rotate(0deg);
}

.css-clock::after {
    height: 7px;
    top: 1px;
    animation: rotate-minute 10s linear infinite;
    transform: translateX(-50%) rotate(0deg);
}

@keyframes rotate-hour {
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes rotate-minute {
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: clamp(40px, 8vw, 80px);
    }

    .hero-text h2 {
        font-size: clamp(20px, 4vw, 32px);
    }

    .card {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #0f172a;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        font-size: 20px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background-color: transparent;
        box-shadow: none;
        padding: 10px 0 0 20px;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero {
        min-height: 500px;
    }

    .iec-hero-section {
        min-height: 400px;
    }

    .card {
        height: 300px;
        min-height: 300px;
    }

    .card-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 400px;
    }

    .hero-text h1 {
        font-size: clamp(32px, 10vw, 48px);
    }

    .hero-text h2 {
        font-size: clamp(16px, 4vw, 20px);
    }

    .logo {
        width: 120px;
    }

    .card {
        height: 250px;
        min-height: 250px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-content p {
        font-size: 14px;
    }

    .iec-title-line {
        font-size: clamp(55px, 6vw, 48px);
    }

    .iec-subtitle {
        font-size: clamp(18px, 3vw, 26px);
    }

    .iec-register-button {
        padding: 12px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Close button for mobile menu */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
