:root {
    --primary: #0A1F44;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F8FAFC;
    --gray-border: #CBD5E1;
    /* Darker, more visible gray */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px !important;
}

.read-more-btn {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.header-cta {
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.15);
}

.header-cta:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
}

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

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 100%);
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.05;
    top: -100px;
    left: -100px;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInRight 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 550px;
    animation: fadeInRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInRight 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.btn {
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 31, 68, 0.25);
}

.hero-image {
    position: relative;
    animation: zoomIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(10, 31, 68, 0.15));
    transition: transform 0.5s ease;
}

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

/* Grid Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 45px 35px;
    border: 2px solid var(--gray-border);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(10, 31, 68, 0.15);
}

.card:not(.service-card)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #1e3a8a);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(10, 31, 68, 0.1);
    box-shadow: 0 25px 50px rgba(10, 31, 68, 0.1);
}

.card:not(.service-card):hover::before {
    transform: scaleX(1);
}

.card-icon {
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* Service Card Premium Styles */
.service-card {
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    border: none !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
}

/* Background Layer for Zoom Effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Darker, Clearer Overlay for Maximum Readability - Refined for better image visibility */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
    transition: background 0.4s ease;
}

.service-card:hover::before {
    transform: scale(1.18);
}

.service-card:hover::after {
    background: linear-gradient(to top,
            rgba(30, 58, 138, 0.9) 0%,
            rgba(30, 58, 138, 0.5) 100%);
}

.service-card h3 {
    color: #FFFFFF !important;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.service-card p {
    color: #FFFFFF !important;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    opacity: 1 !important;
}

/* Specific Backgrounds with higher reliability URLs */
.service-student::before {
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80&w=800');
}

.service-tourist::before {
    background-image: url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?auto=format&fit=crop&q=80&w=800');
}

/* Iconic Europe Landmark */

.service-work::before {
    background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&q=80&w=800');
}

.service-business::before {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=800');
}

.service-tour::before {
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&q=80&w=800');
}

/* Vibrant Resort/Beach */

.service-passport::before {
    background-image: url('https://images.unsplash.com/photo-1544027993-37dbfe43562a?auto=format&fit=crop&q=80&w=800');
}

.service-consultation::before {
    background-image: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?auto=format&fit=crop&q=80&w=800');
}


/* Countries Flags */
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.country-card {
    background-color: var(--white) !important;
    padding: 40px 30px;
    border: 2px solid var(--gray-border) !important;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 280px;
    color: var(--secondary) !important;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    display: none !important;
    /* Remove the old flag background pseudo-element entirely */
}

/* Use after for the top blue bar to match other cards */
.country-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #1e3a8a);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 2;
}

.country-card:hover::after {
    transform: scaleX(1);
}

.country-card h3 {
    color: var(--secondary) !important;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: none !important;
}

.country-card p {
    color: var(--text-gray) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: none !important;
}

.flag-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    filter: none !important;
    transition: var(--transition);
}

.country-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Removed Country Specific Flag Backgrounds to match clean white style */

/* Contact Form */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border: 2px solid var(--gray-border);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 31, 68, 0.05);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition);
    padding: 40px 30px;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
}

.sidebar.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 20px;
    margin-right: 10px;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar-nav ul li {
    border-bottom: 2px solid var(--gray-border);
}

.sidebar-nav ul li:first-child {
    border-top: 2px solid var(--gray-border);
}

.sidebar-nav ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 10px;
    transition: var(--transition);
}

.sidebar-nav ul li a:hover {
    background: var(--gray-light);
    color: #1e3a8a;
    padding-left: 20px;
}

.sidebar-nav ul li a svg {
    width: 22px;
    height: 22px;
    opacity: 0.8;
    transition: var(--transition);
}

.sidebar-nav ul li a:hover svg {
    transform: scale(1.1) translateX(5px);
    opacity: 1;
}

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-btn svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary);
}

/* SVG Icon Helper */
.svg-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: flex;
        /* Show only on mobile */
    }

    .menu-btn {
        display: block;
    }

    .header-cta {
        display: none;
    }

    header nav {
        display: none !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Keep 2x2 only for visual service cards */
    #services-preview .grid,
    .services-page .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-card {
        min-height: 220px;
        /* Shorter cards for 2x2 layout */
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .card {
        padding: 30px 20px;
    }

    .review-text {
        -webkit-line-clamp: 2;
        /* Even shorter on mobile */
    }

    .service-card p {
        display: none;
    }

    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .country-card {
        min-height: 200px;
        padding: 20px 15px;
    }

    .country-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .country-card p {
        display: none;
    }

    .country-card .flag-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}