/* Font Face Declaration */
@font-face {
    font-family: 'karlaregular';
    src: url('fonts/karla-regular-webfont.woff2') format('woff2'),
         url('fonts/karla-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Custom Font Settings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
}

body {
    font-family: 'karlaregular', sans-serif;
    -webkit-font-smoothing: antialiased; /* For WebKit browsers (Chrome, Safari, Edge) */
    -moz-osx-font-smoothing: grayscale; /* For macOS Firefox */
}

/* Custom Color Palette Based on Image */
:root {
    --primary-lavender: #E6D7F5;  /* Light lavender */
    --primary-purple: #B19CD9;    /* Matching blazer color */
    --secondary-purple: #9B7EDC;  /* Slightly darker */
    --deep-purple: #563D7C;       /* Dark accent */
    --soft-white: #F8F7FA;        /* Light background */
    --text-dark: #2D2A35;         /* Dark text */
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000; /* Dark base to prevent white flash */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: fadeInOut 15s infinite;
    opacity: 0;
    filter: sepia(10%) brightness(0.85) contrast(1.1);
    will-change: opacity;
    transform: translateZ(0);
    transition: opacity 1.2s ease-in-out;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%);
    backdrop-filter: grayscale(30%) contrast(0.8);
}

.hero-background:nth-child(1) {
    background-image: url('img/cities/nyc-2.jpg');
    animation-delay: 0s;
}

.hero-background:nth-child(2) {
    background-image: url('img/cities/london.jpg');
    animation-delay: 5s;
}

.hero-background:nth-child(3) {
    background-image: url('img/cities/lagos.jpg');
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

@keyframes fadeInOut {
    0% { 
        opacity: 0;
    }
    4% { 
        opacity: 0.65;
    }
    30% { 
        opacity: 0.65;
    }
    33% { 
        opacity: 0;
    }
    100% { 
        opacity: 0;
    }
}

/* Navigation Styles */
.nav-container {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--primary-purple);
}

.nav-link:hover {
    color: var(--secondary-purple);
    background: var(--primary-lavender);
}

/* Card Styles */
.mentorship-card {
    background: var(--soft-white);
    border: 1px solid var(--primary-lavender);
}

.mentorship-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(177, 156, 217, 0.2);
}

/* Button Styles */
.custom-button {
    background: var(--primary-purple);
}

.custom-button:hover {
    background: var(--secondary-purple);
}

/* Social Icons */
.social-icon-bg {
    background: var(--primary-lavender);
}

.social-icon-bg:hover {
    background: var(--primary-purple);
    color: white;
}

/* Footer Styles */
.footer-gradient {
    background: linear-gradient(180deg, var(--soft-white) 0%, var(--primary-lavender) 100%);
}

.footer-link {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-purple);
}

.hero-image {
    border: 4px solid var(--accent-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Enhanced About Cards */
.about-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(177, 156, 217, 0.2);
}

.about-card:hover::before {
    opacity: 0.05;
}

/* Navigation Styles */
.nav-container {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--primary-purple);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Button Styles */
.custom-button {
    background: var(--primary-purple);
    transition: all 0.3s ease;
}

.custom-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
/* Previous styles remain... */

/* Enhanced Navigation Styles */
.nav-container {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(177, 156, 217, 0.2);
}

.nav-link {
    font-weight: 500;
    color: #2d3748;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(177, 156, 217, 0.1);
    color: var(--primary-purple);
}

/* Social Media Icons Animation */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Booking Button Animation */
.booking-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
}

.booking-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.booking-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Mentorship Cards */
.mentorship-card {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mentorship-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
}

.mentorship-icon {
    transition: all 0.3s ease;
}

.mentorship-card:hover .mentorship-icon {
    transform: scale(1.1) rotate(5deg);
}

.mentorship-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.mentorship-card a {
    display: inline-block;
    margin-top: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Custom Background Gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--secondary-purple) 100%);
}

/* Fancy Border Animation */
.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.animated-border:hover::after {
    width: 100%;
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hover-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(177, 156, 217, 0.1);
}

/* Timeline Connector Line */
.timeline-connector {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-purple) 50%, var(--primary-lavender) 50%);
    background-size: 100% 20px;
    animation: borderDash 20s linear infinite;
}

@keyframes borderDash {
    to {
        background-position: 0 -1000px;
    }
}

/* Navigation Animation */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

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

.nav-link:hover::after {
    width: 100%;
}
/* Mobile menu animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

/* Timeline animations */
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.timeline-item:hover {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* CTA Section Styles */
.cta-gradient {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--secondary-purple) 100%);
    box-shadow: 0 10px 30px rgba(86, 61, 124, 0.2);
}

/* Social Media Icons */
.social-icon-container {
    background: var(--primary-lavender);
    transition: all 0.3s ease;
}

.social-icon-container i {
    color: var(--deep-purple);
    transition: all 0.3s ease;
}

.social-icon-container:hover {
    background: var(--deep-purple);
}

.social-icon-container:hover i {
    color: var(--primary-lavender);
}

/* Companies Section Styles */
.companies-section {
    background: var(--soft-white);
    padding: 4rem 0;
    border-top: 1px solid rgba(177, 156, 217, 0.2);
    border-bottom: 1px solid rgba(177, 156, 217, 0.2);
}

.companies-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem;
}

.company-logo {
    max-width: 180px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.company-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .companies-grid {
        gap: 2rem;
    }
    
    .company-logo {
        max-width: 140px;
        height: 45px;
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    height: 48px;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
}