:root {
    --orange: #F7941D;
    --teal: #3AAFA9;
    --navy: #2B3990;
    --green: #27AE60;
    --gold: #ce9f40;
    --white: #FFFFFF;
    --off-white: #F9F9F9;
    --dark: #1D1D1F;
    --secondary-text: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 17px;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--off-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header.hide-header {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    transition: transform 0.4s ease;
}
.logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.05);
}

.logo-text h1 {
    color: var(--navy);
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--gold);
}

.desktop-menu {
    display: block;
}

.desktop-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.desktop-menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.desktop-menu a:hover, .desktop-menu a.active {
    color: var(--orange);
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.desktop-menu a:hover::after, .desktop-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background-color: transparent;
    border: none;
    padding: 10px;
}
.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--navy);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease;
}
.hamburger-inner {
    display: block;
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -10px;
}
.hamburger-inner::after {
    bottom: -10px;
}
.hamburger--active .hamburger-inner {
    transform: rotate(45deg);
}
.hamburger--active .hamburger-inner::before {
    transform: rotate(-90deg) translate3d(-10px, 0, 0);
}
.hamburger--active .hamburger-inner::after {
    opacity: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
}

.mobile-menu--active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.mobile-menu a:hover, .mobile-menu a.active {
    background-color: var(--off-white);
    color: var(--orange);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay--active {
    opacity: 1;
    visibility: visible;
}

main {
     position: relative;
     z-index: 1;
     background-color: var(--white);
}

.section {
     padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--navy);
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin: 0;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--orange), var(--green));
    bottom: 0;
    left: 50%;
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-title.is-visible h2:after {
    transform: translateX(-50%) scaleX(1);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 15px auto 0;
    font-weight: 300;
}

/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 200px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.7) 0%, rgba(247, 148, 29, 0.6) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, var(--orange), var(--green));
    color: white;
    padding: 18px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    box-shadow: 0 4px 20px rgba(247, 148, 29, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(247, 148, 29, 0.4);
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.9) 0%, rgba(58, 175, 169, 0.8) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats-section .section-title h2 {
    color: var(--white);
    margin-bottom: 0;
}

.stats-section .section-title h2:after {
     background: var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    padding: 30px;
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.5s ease-out;
}

.stat-item .label {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* --- Benefits, Degrees, Areas --- */
.benefits {
    padding: 100px 0;
    position: relative;
    background-color: transparent;
}

.benefits-grid, .degrees-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card, .degree-card, .area-card-glass, .service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.04);
    text-align: center;
    border-top: 4px solid var(--teal);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefit-card:hover, .degree-card:hover, .area-card-glass:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.benefit-icon, .degree-icon, .area-icon {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 25px;
    background-color: rgba(43, 57, 144, 0.08);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon, .degree-card:hover .degree-icon, .area-card-glass:hover .area-icon {
    background-color: var(--navy);
    color: white;
    transform: scale(1.1);
}

.benefit-card h3, .degree-card h3, .area-card-glass h3, .service-card h3{
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.benefit-card p, .degree-card p, .area-card-glass p, .service-card p{
    color: #666;
    font-weight: 300;
    font-size: 1.05rem;
}

.degrees {
    padding: 100px 0;
    background-color: white;
}

.degree-card {
    border-top: none;
    border-bottom: 4px solid var(--teal);
}

.study-areas-split {
    padding: 100px 0;
    background: var(--off-white);
}

.split-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.areas-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.area-card-glass {
    border-top: none;
    border-bottom: 4px solid var(--orange);
}

/* --- CTA & Floating Buttons --- */
.whatsapp-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
    color: white;
    text-align: center;
}

.whatsapp-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.whatsapp-cta p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 18px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}
.whatsapp-button i {
    margin-right: 12px;
}

.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-btn:hover {
     transform: scale(1.1);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.instagram-float {
    bottom: 180px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.phone-float {
    bottom: 110px;
    background-color: var(--orange);
}
.whatsapp-float {
    bottom: 40px;
    background-color: #25D366;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(43, 57, 144, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 148, 29, 0.3);
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.footer-content, .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-about h3, .footer-details h3, .footer-links h3, .footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 10px;
}

.footer-about p, .footer-details p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-details i {
    margin-right: 10px;
    color: var(--gold);
}

.footer-details a, .footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-details a:hover, .footer-links a:hover {
    color: var(--orange);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 12px; }

.footer-social-icons a {
    color: white;
    font-size: 1.8rem;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.footer-social-icons a:hover {
    color: var(--orange);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright-footer {
    background-color: var(--dark);
    color: var(--gold);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.developer-credit {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.developer-credit a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--orange);
}


/* --- PAGE SPECIFIC STYLES (ABOUT, STEPS, 404) --- */
.page-header {
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.9) 0%, rgba(58, 175, 169, 0.8) 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.9) 0%, rgba(58, 175, 169, 0.8) 100%);
    opacity: 0.4;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-section {
    padding: 80px 0;
    position: relative;
}
.about-section:nth-child(odd) { background-color: var(--white); }
.about-section:nth-child(even) { background-color: var(--off-white); }


.content-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}
.content-box h2 { font-size: 2.5rem; }
.content-box p { font-size: 1.05rem; }

.mission-vision { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.mission-card, .vision-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease; }
.mission-card:hover, .vision-card:hover { transform: translateY(-5px); }
.mission-card i, .vision-card i { font-size: 2.5rem; color: var(--orange); margin-bottom: 20px; }
.mission-card h3, .vision-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 15px; }
.mission-card p, .vision-card p { font-size: 1rem; }

.values-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.value-item { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--teal); }
.value-item h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 15px; display: flex; align-items: center; }
.value-item h3 i { margin-right: 10px; color: var(--orange); }
.value-item p { font-size: 1rem; }


.process-section { background-color: var(--white); }
.process-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.process-step { background: var(--off-white); padding: 30px; border-radius: 12px; text-align: center; border-bottom: 4px solid var(--teal); transition: all 0.3s ease; }
.process-step:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.process-icon { font-size: 2.5rem; color: var(--navy); margin-bottom: 20px; background-color: rgba(43, 57, 144, 0.08); width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.process-step h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.process-step p { font-size: 1.05rem; color: var(--secondary-text); font-weight: 300; }

.error-page-section {
    padding: 120px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.error-page-section h1 {
    font-size: 6rem;
    color: var(--navy);
    margin: 0;
}
.error-page-section h2 {
    font-size: 2rem;
    color: var(--dark);
    margin: 10px 0 25px;
}
.error-page-section p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
}


/* --- Media Queries --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    #particles-js {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logo-img {
        height: 40px;
    }
    .logo-text h1 {
        font-size: 1.4rem;
    }
    .logo {
        gap: 12px;
    }

    .hero, .hero-slide {
        background-attachment: scroll;
    }

    .header-container {
        justify-content: space-between;
        padding: 15px 0;
    }

    .hero { padding: 150px 0 80px; }
    .hero h2 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }

    .section, .about-section {
        padding: 60px 0;
    }
    .section-title h2 { font-size: 1.875rem; }
    .section-subtitle { font-size: 1rem; }

    .stat-item .number { font-size: 2.2rem; }

    .benefit-card h3, .degree-card h3, .area-card-glass h3 { font-size: 1.1rem; }
    .benefit-card p, .degree-card p, .area-card-glass p { font-size: 1rem; }

    .whatsapp-cta h2 { font-size: 1.875rem; }
    .whatsapp-cta p { font-size: 1.1rem; }
    .cta-button, .whatsapp-button { font-size: 1rem; }

    .stats-grid, .benefits-grid, .degrees-grid, .mission-vision, .values-list { grid-template-columns: 1fr; }
    .split-container { flex-direction: column; }

    .page-header { padding: 120px 0 60px; }
    .page-header h1 { font-size: 2.4rem; }
    .page-header p { font-size: 1.1rem; }
    .content-box { padding: 25px; }

    .floating-btn {
        width: 45px;
        height: 45px;
        right: 15px;
        font-size: 20px;
    }
    .instagram-float { bottom: 150px; }
    .phone-float { bottom: 90px; }
    .whatsapp-float { bottom: 30px; }

    .back-to-top {
        width: 45px;
        height: 45px;
        left: 15px;
        bottom: 15px;
    }
}