/* ==========================================================================
   STUDIFY Overseas - Custom Styles (Expanded)
   ========================================================================== */

/* --- Variables & Core Styles --- */
:root {
    --primary: #000000;       
    --primary-dark: #1a1a1a;
    --primary-light: #4d4d4d;
    --primary-soft: rgba(0, 0, 0, 0.05);
    
    --secondary: #475569;     
    --dark: #0f172a;          
    --light: #f8fafc;         
    
    --success: #10b981;       
    --success-soft: rgba(16, 185, 129, 0.1);
    
    --gradient-1: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --gradient-text: linear-gradient(90deg, #4d4d4d 0%, #000000 100%);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--secondary);
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2 h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark);
    letter-spacing: -0.02em;
}

 h5, h6{
 font-family: var(--font-heading);
    color: white;
    letter-spacing: -0.02em;

}

.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
.hero-section .display-3, .hero-section .display-4, .hero-section .display-5,
.page-header h1, .page-header h2, .page-header h3, .page-header h4, .page-header h5, .page-header h6,
.page-header .display-3, .page-header .display-4, .page-header .display-5, .display-4, .display-5 {
    color: var(--dark) !important ;
}

.hero-title, .display-3  {
    color: white !important;
}


.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-soft-primary { background-color: var(--primary-soft) !important; }
.bg-soft-success { background-color: var(--success-soft) !important; }
.text-dark { color: var(--dark) !important; }
.section-light { background-color: var(--light); }

.tracking-wider { letter-spacing: 0.1em; }
.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }

/* Utilities */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.py-7 { padding-top: 8rem; padding-bottom: 8rem; }
.icon-box-sm { width: 40px; height: 40px; font-size: 1.1rem; }
.icon-box { width: 60px; height: 60px; }

/* Text Gradient */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Components --- */

/* Buttons */
.btn {
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: var(--gradient-1);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Navbar */
.glass-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.glass-nav.scrolled {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.navbar-brand img {
    height: 70px;
    object-fit: contain;
}
.nav-link {
    font-weight: 700;
    color: #0f172a !important; /* Very dark for high contrast */
    padding: 0.5rem 0.8rem !important;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section (Updated with Background Image) */
.hero-section {
    padding-top: 80px;
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}
.hero-section .text-dark { color: #fff !important; }
.hero-section .text-secondary { color: rgba(255,255,255,0.8) !important; }
.hero-section .bg-soft-primary { background-color: rgba(255,255,255,0.1) !important; color: #fff !important; border-color: rgba(255,255,255,0.2) !important; }
.hero-section .btn-outline-dark { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.hero-section .btn-outline-dark:hover { background: #fff; color: var(--dark); }

/* Founder Section Image */
.founder-image-bg {
    background-image: url('founder pic.jpeg');
    background-size: cover;
    background-position: center top;
}

/* Services */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover .icon-box {
    background-color: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Destination Cards */
.destination-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    display: block;
}
.destination-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.destination-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}
.destination-card:hover img {
    transform: scale(1.05);
}

/* Journey Timeline */
.journey-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&q=80&w=2074');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
}
.timeline-container { position: relative; }
.timeline-line {
    position: absolute;
    top: 25px; 
    left: 10%; right: 10%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}
@media (max-width: 767px) {
    .timeline-line { display: none; }
    .timeline-step { margin-bottom: 2rem; }
}
.step-number {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    border: 4px solid var(--dark);
    transition: transform 0.3s ease;
}
.timeline-step:hover .step-number { transform: scale(1.15) translateY(-5px); }

/* Testimonials / Success Cards */
.success-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
}
.student-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-soft);
}

/* Page Header (For subpages) */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: #0f172a;
    position: relative;
    color: white;
}
.page-header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* Form Controls */
.form-control, .form-select {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px var(--primary-soft);
    background-color: white !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.4);
}

/* --- Animations (Scroll Reveal & Hover) --- */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }

/* --- Plane Animation --- */
.plane-animation-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1; overflow: hidden;
}
.flying-plane {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    opacity: 0;
}
.plane-1 { animation: fly-plane-1 12s linear infinite; }
.plane-2 { animation: fly-plane-2 16s linear infinite 4s; }
.plane-3 { animation: fly-plane-3 14s linear infinite 8s; }

.dest-label {
    position: absolute;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
@keyframes fly-plane-1 {
    0% { transform: translate(-10vw, 80vh) scale(0.5) rotate(15deg); opacity: 0; }
    5% { opacity: 1; }
    25% { transform: translate(30vw, 50vh) scale(1.2) rotate(25deg); }
    50% { transform: translate(70vw, 20vh) scale(1.5) rotate(35deg); }
    95% { opacity: 1; }
    100% { transform: translate(110vw, -10vh) scale(1) rotate(45deg); opacity: 0; }
}
@keyframes fly-plane-2 {
    0% { transform: translate(110vw, 60vh) scale(0.5) rotate(-165deg); opacity: 0; }
    5% { opacity: 1; }
    50% { transform: translate(40vw, 30vh) scale(1.2) rotate(-145deg); }
    95% { opacity: 1; }
    100% { transform: translate(-10vw, 10vh) scale(1) rotate(-135deg); opacity: 0; }
}
@keyframes fly-plane-3 {
    0% { transform: translate(20vw, 110vh) scale(0.5) rotate(-75deg); opacity: 0; }
    5% { opacity: 1; }
    50% { transform: translate(60vw, 50vh) scale(1) rotate(-55deg); }
    95% { opacity: 1; }
    100% { transform: translate(80vw, -10vh) scale(1.5) rotate(-45deg); opacity: 0; }
}

/* --- Responsive & Mobile Adjustments --- */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    .hero-title, .display-3 {
        font-size: 2.8rem;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .display-5 {
        font-size: 1.8rem;
    }
}
@media (max-width: 767px) {
    .hero-title, .display-3 {
        font-size: 2.2rem;
    }
    .founder-image-bg {
        height: 350px !important;
        margin-bottom: 2rem;
    }
    .py-7 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .experience-badge {
        margin-bottom: -1rem !important;
        margin-left: 1rem !important;
        padding: 1rem !important;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .plane-animation-container .dest-label {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    .flying-plane {
        font-size: 1.5rem;
    }
    .navbar-collapse .d-flex {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .hero-title, .display-3 {
        font-size: 1.8rem;
    }
    .display-4 {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}
