/* 
 * Altay NTR - Premium 2026 Light Design System
 * Clean light medical theme featuring glassmorphism, soft ambient shadows, and hyper-responsive layouts.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Clean Light Premium Palette */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    
    /* Elegant High-Contrast Medical Colors */
    --color-primary: #0284c7;       /* Royal Blue */
    --color-primary-rgb: 2, 132, 199;
    --color-secondary: #4f46e5;     /* Electric Indigo */
    --color-secondary-rgb: 79, 70, 229;
    --color-accent: #059669;        /* Medical Emerald */
    --color-accent-rgb: 5, 150, 105;
    
    /* Slate Dark text colors for readability */
    --text-main: #0f172a;           /* Deep Navy */
    --text-muted: #475569;          /* Cool Slate */
    --text-dark: #64748b;           /* Muted Slate */
    
    /* Borders & Glassmorphic Highlights */
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glass-hover: rgba(2, 132, 199, 0.3);
    --shadow-premium: 0 25px 60px -15px rgba(15, 23, 42, 0.08);
    
    /* Transition Settings */
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 5px;
    border: 2px solid var(--bg-base);
}

/* Selection */
::selection {
    background: rgba(2, 132, 199, 0.15);
    color: var(--text-main);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glow Blobs */
.ambient-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-1 {
    top: 5%;
    left: -15%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    right: -15%;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-3 {
    top: 75%;
    left: 10%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 60px) scale(1.2);
    }
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Header & Glass Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.logo a {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
}

.logo span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 10px 18px;
    border-radius: 30px;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.current {
    color: var(--text-main);
    background-color: rgba(15, 23, 42, 0.04);
}

.nav-links a.current {
    border: 1px solid var(--border-glass);
}

.nav-cta {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(2, 132, 199, 0.2) !important;
    color: var(--color-primary) !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px -6px rgba(2, 132, 199, 0.4);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
}

header.scrolled .nav-container {
    padding: 14px 40px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 24px;
}

.mobile-nav-toggle span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-nav-toggle span:nth-child(1) { top: 4px; }
.mobile-nav-toggle span:nth-child(2) { top: 11px; }
.mobile-nav-toggle span:nth-child(3) { top: 18px; }

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 40px 80px 40px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, var(--bg-base) 100%), 
                url('../img/backgrounds/bg-home-fullscreen.jpg') no-repeat center center / cover;
    overflow: hidden;
}

/* Canvas overlay for interactive nodes network */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.hero-content {
    max-width: 950px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-badge {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
    animation: fadeInUp 0.8s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-main) 30%, #0369a1 70%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 45px auto;
    line-height: 1.75;
    font-family: var(--font-body);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.btn-secondary:hover {
    background-color: #ffffff;
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

/* Stats Counter Section */
.stats-floating-panel {
    max-width: 1200px;
    margin: -60px auto 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-premium);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-glass);
    padding: 10px 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(2, 132, 199, 0.15));
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sections Base */
section {
    padding: 125px 40px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 75px auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    color: var(--text-main);
}

.section-title span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheading {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Features Grid Overhaul */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 45px 35px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(2, 132, 199, 0.06), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: 0 25px 45px -15px rgba(2, 132, 199, 0.12);
}

.card-icon {
    font-size: 2.4rem;
    width: 68px;
    height: 68px;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 30px;
    transition: var(--transition-normal);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(79, 70, 229, 0.1));
    border-color: rgba(2, 132, 199, 0.3);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About Section Overhaul */
#about {
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: linear-gradient(180deg, var(--bg-base) 0%, #f1f5f9 50%, var(--bg-base) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-bullets {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-bullet-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-bullet-icon {
    width: 24px;
    height: 24px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.about-bullet-item p {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.about-visual {
    position: relative;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.7);
    padding: 45px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.visual-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
}

.timeline-item:nth-child(2) .timeline-dot {
    background-color: var(--color-secondary);
    box-shadow: 0 0 8px var(--color-secondary);
}

.timeline-item:nth-child(3) .timeline-dot {
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certificates */
.certificate-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.04);
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 25px 45px -15px rgba(2, 132, 199, 0.15);
}

.certificate-img-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-glass);
    background-color: #f1f5f9;
}

.certificate-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    opacity: 0.9;
}

.certificate-card:hover .certificate-img-container img {
    transform: scale(1.05);
    opacity: 1;
}

.certificate-info {
    padding: 26px;
    text-align: center;
}

.certificate-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Services Dynamic Section */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 55px;
}

.service-tab-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    padding: 12px 30px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.service-tab-btn:hover,
.service-tab-btn.active {
    color: var(--text-main);
    background-color: #ffffff;
    border-color: var(--border-glass-hover);
}

.service-tab-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(79, 70, 229, 0.1));
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

.service-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.service-tab-content.active {
    display: block;
}

.services-interactive-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.services-interactive-details h3 {
    font-size: 2.4rem;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--text-main), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-interactive-details p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.services-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.service-feature-card:hover {
    border-color: var(--border-glass-hover);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.service-feature-card h5 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
}

.service-feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.services-interactive-visual {
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
    background-color: rgba(255, 255, 255, 0.5);
}

.service-visual-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background-color: var(--color-primary);
    filter: blur(85px);
    border-radius: 50%;
    opacity: 0.2;
}

.services-interactive-visual svg {
    filter: drop-shadow(0 8px 20px rgba(2, 132, 199, 0.25));
    z-index: 10;
    animation: pulseIcon 4s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-12px) scale(1.06);
    }
}

/* Contact Overhaul */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-panel {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
}

.contact-info-panel h4 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 35px;
    background: linear-gradient(135deg, var(--text-main), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details svg {
    color: var(--color-primary);
    background: rgba(2, 132, 199, 0.05);
    border-radius: 12px;
    padding: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.05);
}

.contact-details h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
    font-weight: 700;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-panel {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-premium);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.hide {
    display: none !important;
}

/* Alert Messages */
.alert-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: none;
    animation: fadeIn 0.4s ease;
}

.alert-success {
    background-color: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #047857;
    display: block;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #b91c1c;
    display: block;
}

/* Footer Overhaul */
footer {
    background-color: #0f172a;
    border-top: 1px solid var(--border-glass);
    padding: 65px 40px;
    color: #f1f5f9;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-info {
    text-align: right;
}

.footer-container p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container a {
    color: var(--color-primary);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
}

#back-to-top svg {
    transition: var(--transition-fast);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
}

#back-to-top:hover svg {
    transform: translateY(-2px);
}

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-item {
        border-right: none;
    }
    
    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-glass);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        border-bottom: 1px solid var(--border-glass);
        padding: 30px;
        gap: 20px;
        box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        display: block;
        text-align: center;
        padding: 12px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-interactive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-interactive-visual {
        order: -1;
    }
    
    .services-tabs {
        flex-wrap: wrap;
    }
    
    .form-panel, .contact-info-panel {
        padding: 30px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }

    /* Mobile Licenses Carousel */
    #cerificates .grid-3 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 12px 40px 24px 40px;
        margin: 0 -40px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    #cerificates .certificate-card {
        flex: 0 0 280px;
        scroll-snap-align: center;
    }
    
    #cerificates .certificate-img-container {
        height: 280px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 80px 20px;
    }
    
    .hero-title {
        font-size: 1.85rem;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-item:nth-child(odd) {
        border-right: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    /* Extra responsive tweaks for narrow mobile screens */
    #cerificates .grid-3 {
        padding: 12px 20px 24px 20px;
        margin: 0 -20px;
        gap: 16px;
    }
    
    #cerificates .certificate-card {
        flex: 0 0 260px;
    }
    
    #cerificates .certificate-img-container {
        height: 250px;
    }
}

/* Page Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Delays for Staggered grids */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--border-glass);
    margin-left: 8px;
}

.lang-btn {
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    color: var(--text-dark) !important;
    background: transparent !important;
    border: none !important;
    transition: var(--transition-fast);
}

.lang-btn.active {
    color: var(--color-primary) !important;
    background: rgba(2, 132, 199, 0.08) !important;
    border-radius: 20px !important;
}

.lang-btn:hover {
    color: var(--color-secondary) !important;
}

.lang-divider {
    color: var(--text-dark);
    opacity: 0.4;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .lang-switcher {
        border-left: none;
        border-top: 1px solid var(--border-glass);
        padding-left: 0;
        padding-top: 15px;
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
}

