/*
* File: style.css
* Description: Custom styles for the Business & Economics website.
* Design System: Minimalist with Neo-brutalism elements.
* Color Scheme: Tetradic
* Animation Style: Morphing
*/

/* -------------------------------------------------------------------
   1. CSS Variables (Theme)
------------------------------------------------------------------- */
:root {
    /* Color Palette (Tetradic) */
    --primary-color: #0D63A5; /* A strong, professional blue */
    --secondary-color: #A54B0D; /* A complementary earthy orange */
    --accent-color-1: #0DA55E; /* A vibrant green for success/growth */
    --accent-color-2: #A50D54; /* A deep magenta for contrast */

    /* Neutrals */
    --background-light: #F8F9FA;
    --background-dark: #222529;
    --text-dark: #333333;
    --text-headers: #222222;
    --text-light: #FFFFFF;
    --border-color: #222222;

    /* Typography */
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
}

/* -------------------------------------------------------------------
   2. General & Typography Styles
------------------------------------------------------------------- */
body {
    font-family: var(--font-family-body);
    color: var(--text-dark);
    background-color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-headers);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem !important;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

p.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

section {
    padding: var(--section-padding);
}

/* -------------------------------------------------------------------
   3. Global Component Styles
------------------------------------------------------------------- */

/* Custom Buttons (Neo-brutalism) */
.btn.custom-btn, .btn.custom-btn-outline {
    font-family: var(--font-family-headings);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.btn.custom-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn.custom-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border-color);
}

.btn.custom-btn-outline {
    background-color: transparent;
    color: var(--text-dark);
}

.btn.custom-btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border-color);
}

/* Custom Form Fields */
.contact-form .form-control {
    border-radius: 0;
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 4px 4px 0px var(--primary-color);
    transform: translate(-2px, -2px);
}

/* Base Card Style */
.card {
    border: 2px solid var(--border-color);
    border-radius: 0;
    background-color: var(--text-light);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0px var(--primary-color);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card .card-image {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* -------------------------------------------------------------------
   4. Section-specific Styles
------------------------------------------------------------------- */

/* Header & Navbar */
.navbar {
    background-color: transparent;
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--background-dark);
    padding: 0.5rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar .navbar-brand {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar .nav-link {
    font-family: var(--font-family-headings);
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    color: var(--text-light);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    position: relative;
    color: var(--text-light);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 99, 165, 0.7), rgba(165, 13, 84, 0.5));
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Innovation - Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: var(--text-light);
    border: 4px solid var(--primary-color);
    top: 22px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 28px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--border-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--border-color);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 28px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--border-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--border-color) transparent transparent;
}

.right::after {
    left: -13px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-light);
    position: relative;
    border: 2px solid var(--border-color);
}

/* Accolades Section */
.info-card .card-image {
    height: 250px;
}

/* Team Section */
.team-card .card-image {
    width: 180px;
    height: 180px;
    margin-top: -90px;
    border: 4px solid var(--primary-color);
}

.team-card .card-image img {
    object-position: top;
}

/* News Section */
.news-card {
    text-align: left;
}
.news-card .card-image {
    height: 100%;
}
.news-card .card-content {
    justify-content: space-between;
}
.news-card a {
    align-self: flex-start;
}

/* Pricing Section */
.pricing-card {
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}
.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 10px 10px 0px var(--primary-color);
    z-index: 10;
}
.pricing-card .card-header {
    background-color: var(--background-dark);
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem;
}
.pricing-card.popular .card-header {
    background-color: var(--primary-color);
}
.pricing-card .card-title {
    font-size: 3rem;
    margin: 1rem 0;
}
.pricing-card ul li {
    padding: 0.5rem 0;
}

/* Careers Section */
#careers {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#careers .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
}

/* FAQ Accordion */
.accordion-item {
    background-color: transparent;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
}
.accordion-header {
    margin: 0;
}
.accordion-button {
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    background-color: var(--background-light);
    color: var(--text-dark);
    box-shadow: none;
    border: none;
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.accordion-button:focus {
    box-shadow: none;
    border: none;
}
.accordion-body {
    background-color: var(--text-light);
}

/* -------------------------------------------------------------------
   5. Footer Styles
------------------------------------------------------------------- */
.footer {
    padding-top: 4rem;
}
.footer h5 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.footer p {
    color: rgba(255, 255, 255, 0.7);
}
.footer .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-block;
    padding-bottom: 0.2rem;
    position: relative;
}
.footer .footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.footer .footer-link:hover {
    color: var(--text-light);
}
.footer .footer-link:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------
   6. Other Page Styles
------------------------------------------------------------------- */

/* Success Page */
.success-page, .static-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Privacy & Terms Pages */
.static-content-page {
    padding-top: 100px; /* Offset for fixed header */
}

/* -------------------------------------------------------------------
   7. Media Queries (Responsiveness)
------------------------------------------------------------------- */

@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    .navbar .nav-link {
        background-color: rgba(0,0,0,0.2);
        margin-bottom: 2px;
    }
}

@media screen and (max-width: 768px) {
    /* Timeline stacks vertically */
    .timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container::before {
        left: 60px;
        border: medium solid var(--border-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--border-color) transparent transparent;
    }
    .left::after, .right::after {
        left: 18px;
    }
    .right {
        left: 0%;
    }
    .news-card .card-image img {
        border-radius: 0 !important;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    .pricing-card.popular {
        transform: none;
    }
}