/* -----------------------------------
   ROOT VARIABLES & GLOBAL STYLES
----------------------------------- */
:root {
    --primary: #004080;
    --secondary: #018316;
    --accent: #f8b500;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Wrapper for sticky footer */
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

/* -----------------------------------
            TYPOGRAPHY
----------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* -----------------------------------
            NAVBAR
----------------------------------- */
.navbar {
    background: rgba(0, 64, 128, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(0, 64, 128, 0.98) !important;
}

.navbar-brand img {
    height: 55px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
}

/* -----------------------------------
            HERO SECTION
----------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 160px 20px 100px;
    background: linear-gradient(rgba(0, 64, 128, 0.85), rgba(1, 131, 22, 0.8)),
                url('../images/iubat_background.jpg') top/cover no-repeat;
    background-attachment: fixed;
    z-index: 1; /* content above pseudo-element */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: cover;
    z-index: 0; /* behind content */
}

.hero-content {
    max-width: 800px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* -----------------------------------
           IDEATOR SECTION
----------------------------------- */
.ideator-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ideator-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* -----------------------------------
            SECTIONS
----------------------------------- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -10px;
    width: 60px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-img {
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.section-img:hover {
    transform: translateY(-5px);
}

.bg-light-custom {
    background-color: #f8fafc !important;
}

/* -----------------------------------
            BUTTONS
----------------------------------- */
.btn-main {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: 0.3s ease;
    text-decoration: none;
}

.btn-main:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* -----------------------------------
            CARDS
----------------------------------- */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* -----------------------------------
         BACK TO TOP BUTTON
----------------------------------- */
#backTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 1000;
}

#backTop.active {
    visibility: visible;
    opacity: 1;
}

#backTop:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* -----------------------------------
              FOOTER
----------------------------------- */
footer {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 60px 0 30px;
    color: #fff;
    margin-top: auto;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* -----------------------------------
           ANIMATIONS
----------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* -----------------------------------
        RESPONSIVE DESIGN
----------------------------------- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero {
        padding: 130px 20px 80px;
        background-attachment: scroll;
    }
    .hero h1 { font-size: 2.2rem; }
    .ideator-section { padding: 20px; }
    .ideator-photo { width: 150px; height: 150px; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .btn-main, .btn-outline-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .navbar-brand img { height: 45px; }
}
