/* CampusFlow LLC - Editorial Business Brutalism Design */

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    /* Color Palette */
    --navy-deep: #0A1F44;
    --navy-medium: #1A3A5C;
    --navy-light: #2A4A6C;
    --coral-primary: #FF6B4A;
    --coral-dark: #E5583A;
    --coral-light: #FF8566;
    --cream-bg: #FFF8F0;
    --cream-light: #FFFCF7;
    --charcoal: #1A1A1A;
    --gray-medium: #666666;
    --gray-light: #999999;
    --white: #FFFFFF;
    --border-light: #E8DFD6;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--cream-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
    background-color: var(--cream-light);
    box-shadow: 0 2px 20px rgba(10, 31, 68, 0.08);
    padding: 1.25rem 0;
    border-bottom: 2px solid var(--coral-primary);
    position: relative;
    overflow: visible;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 20%;
    height: 2px;
    background: var(--navy-deep);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy-deep);
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    color: var(--coral-primary);
    transform: translateX(3px);
}

.nav-link {
    color: var(--navy-deep);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--coral-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--coral-primary);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link .bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.nav-link.dropdown-toggle::after {
    display: none;
}

/* Dropdown Styles */
.dropdown-menu {
    background: var(--white);
    border: 2px solid var(--navy-deep);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(10, 31, 68, 0.15);
    padding: 0;
    margin-top: 0.75rem;
}

.dropdown-item-product {
    padding: 1.25rem;
    min-width: 360px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.dropdown-item-product:last-child {
    border-bottom: none;
}

.dropdown-item-product:hover {
    background-color: var(--cream-bg);
    transform: translateX(5px);
}

.dropdown-product-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-right: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid currentColor;
    position: relative;
}

.dropdown-product-icon.blue {
    background-color: transparent;
    color: var(--coral-primary);
}

.dropdown-product-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--navy-deep);
    margin-bottom: 0.25rem;
    display: block;
}

.dropdown-product-description {
    font-size: 0.9rem;
    color: var(--gray-medium);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-background-accent {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 120%;
    background: linear-gradient(135deg, var(--coral-primary) 0%, var(--coral-light) 100%);
    opacity: 0.08;
    transform: rotate(-15deg);
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--coral-primary);
    background: var(--navy-deep);
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.hero-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--navy-deep);
    z-index: -1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: var(--navy-deep);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-title-line {
    display: block;
    opacity: 0;
    animation: slideInRight 0.6s ease-out forwards;
}

.hero-title-accent {
    color: var(--coral-primary);
    font-style: italic;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta-wrapper {
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--navy-deep);
    color: var(--white);
    font-weight: 600;
    padding: 1.25rem 2.5rem;
    border: 3px solid var(--navy-deep);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--coral-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta:hover {
    color: var(--white);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--coral-primary);
}

.hero-cta i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

.hero-illustration {
    margin-top: 3rem;
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.4s forwards;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border: 4px solid var(--navy-deep);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--coral-primary);
    z-index: -1;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover img {
    filter: grayscale(0%) contrast(1.15);
    transform: scale(1.05);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-deep) 0%, transparent 50%);
    opacity: 0.2;
    pointer-events: none;
}

/* ========================================
   FEATURED PRODUCTS SIDEBAR
   ======================================== */
.featured-sidebar {
    background-color: var(--white);
    padding: 2.5rem;
    border: 3px solid var(--navy-deep);
    position: relative;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.featured-sidebar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background: var(--coral-primary);
    z-index: -1;
}

.featured-header-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.featured-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--coral-primary);
    line-height: 1;
    font-style: italic;
}

.featured-header {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy-deep);
    margin: 0;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2rem;
}

.product-item {
    padding: 0;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
}

.product-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--coral-primary);
    transition: var(--transition-smooth);
}

.product-item:hover::before {
    height: 100%;
}

.product-icon-wrapper {
    margin-right: 1.25rem;
}

.product-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.75rem;
    flex-shrink: 0;
    border: 3px solid currentColor;
    background: transparent;
    transition: var(--transition-smooth);
}

.product-icon.blue {
    color: var(--coral-primary);
}

.product-item:hover .product-icon {
    background: var(--coral-primary);
    color: var(--white);
    transform: rotate(-5deg);
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy-deep);
    margin-bottom: 0.5rem;
    display: block;
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray-medium);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    background: var(--navy-deep);
    padding: 0.35rem 0.75rem;
}

.product-item-link {
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
    outline: none !important;
}

.product-item-link:hover,
.product-item-link:focus,
.product-item-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

.product-item-link .product-name,
.product-item-link .product-description {
    text-decoration: none !important;
}

.product-item-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-light);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.product-item-placeholder:hover {
    border-color: var(--coral-primary);
    background: var(--cream-bg);
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 2.5rem;
    color: var(--coral-primary);
    margin-bottom: 1rem;
}

.product-placeholder-text {
    color: var(--gray-medium);
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}

.explore-all {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--navy-deep);
}

.explore-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-deep);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.75rem 1rem;
    margin: -0.75rem -1rem;
    z-index: 1;
}

.explore-all-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-deep);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.explore-all-link i {
    transition: transform 0.3s ease;
}

.explore-all-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.explore-all-link:hover {
    color: var(--white);
}

.explore-all-link:visited {
    color: var(--navy-deep);
}

.explore-all-link:hover:visited {
    color: var(--white);
}

.explore-all-link:hover i {
    transform: translate(3px, -3px);
}

/* ========================================
   OUR STORY SECTION
   ======================================== */
.our-story-section {
    padding: 8rem 0;
    background: var(--cream-light);
    position: relative;
    overflow: hidden;
}

.story-background-shape {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: var(--navy-deep);
    opacity: 0.03;
    transform: rotate(45deg);
    border-radius: 50px;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.story-number {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--coral-primary);
    line-height: 1;
    font-style: italic;
    opacity: 0.3;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--navy-deep);
    letter-spacing: -1px;
    margin: 0;
    position: relative;
}

.story-content {
    background-color: var(--white);
    padding: 4rem;
    border: 3px solid var(--navy-deep);
    position: relative;
    opacity: 0;
}

.story-content.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.story-content::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--coral-primary);
    z-index: -1;
}

.story-intro {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--navy-deep);
}

.story-lead {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.5;
    color: var(--navy-deep);
    margin: 0;
}

.story-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.story-body p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--cream-light) 100%);
    position: relative;
}

.contact-wrapper {
    opacity: 0;
}

.contact-wrapper.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-number {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--coral-primary);
    line-height: 1;
    font-style: italic;
    opacity: 0.3;
}

.contact-content {
    background-color: var(--white);
    padding: 5rem 4rem;
    border: 3px solid var(--navy-deep);
    text-align: center;
    position: relative;
}

.contact-content::after {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    background: var(--coral-primary);
    z-index: -1;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy-deep);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 1rem 2rem;
    border: 2px solid transparent;
}

.contact-email i {
    font-size: 2rem;
    color: var(--coral-primary);
    transition: var(--transition-smooth);
}

.contact-email:hover {
    color: var(--coral-primary);
    border: 2px solid var(--navy-deep);
}

.contact-email:hover i {
    transform: rotate(-15deg);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--navy-deep);
    padding: 4rem 0;
    color: var(--cream-light);
    margin-top: 0;
    border-top: 4px solid var(--coral-primary);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--gray-light);
    margin: 0;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 0.75rem;
}

.footer-links {
    font-size: 0.9rem;
    margin: 0;
}

.footer-links a {
    color: var(--cream-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-primary);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--coral-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (991px and below) */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .featured-sidebar {
        margin-top: 3rem;
        min-height: auto;
    }

    .story-number,
    .contact-number {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-background-accent {
        width: 80%;
        right: -20%;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-label {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 2rem;
        font-size: 0.9rem;
    }

    .featured-sidebar {
        padding: 2rem;
        margin-top: 2rem;
    }

    .featured-sidebar::after {
        bottom: -6px;
        right: -6px;
    }

    .featured-number {
        font-size: 2rem;
    }

    .featured-header {
        font-size: 1.25rem;
    }

    .product-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .product-name {
        font-size: 1.25rem;
    }

    .our-story-section,
    .contact-section {
        padding: 5rem 0;
    }

    .story-header,
    .contact-header {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .story-number,
    .contact-number {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-content {
        padding: 2.5rem;
    }

    .story-content::after {
        bottom: -8px;
        left: -8px;
    }

    .story-lead {
        font-size: 1.375rem;
    }

    .story-body p {
        font-size: 1rem;
    }

    .contact-content {
        padding: 3rem 2rem;
    }

    .contact-content::after {
        top: -8px;
        right: -8px;
    }

    .contact-email {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-email i {
        font-size: 1.5rem;
    }

    .footer {
        padding: 3rem 0;
        text-align: center;
    }

    .footer .col-md-6 {
        text-align: center !important;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    /* Dropdown adjustments */
    .dropdown-item-product {
        min-width: auto;
        max-width: 100%;
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.375rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-wrapper::after {
        bottom: -6px;
        right: -6px;
    }

    .featured-sidebar {
        padding: 1.5rem;
    }

    .product-item::before {
        left: -1.5rem;
    }

    .story-content {
        padding: 2rem;
    }

    .story-intro {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .story-lead {
        font-size: 1.125rem;
    }

    .contact-content {
        padding: 2.5rem 1.5rem;
    }

    .contact-description {
        font-size: 1.125rem;
    }

    .contact-email {
        font-size: 1.125rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.justify-content-center {
    justify-content: center;
}
