/*
Theme Name: Talent CAD Academy
Theme URI: http://talentacademy.in
Author: Cloud Tech
Author URI: https://cloudtechcomputers.in
Description: A premium, modern theme for Talent CAD Academy Tiruppur.
Version: 1.0.1
Text Domain: talent-academy
*/

/* Custom Styles for background images and subtle animations */
.hero-bg {
    background-color: #09090b; /* Midnight Onyx */
    position: relative;
    overflow: hidden;
}

/* CAD Blueprint Grid - Panning */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(rgba(30, 64, 175, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: panGrid 20s linear infinite;
}

@keyframes panGrid {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-50px) translateX(-50px); }
}

/* Complex Pattern Drawing */
.path-draw {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: dashDraw 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.path-draw-delay-1 { animation-delay: 1.5s; }
.path-draw-delay-2 { animation-delay: 3s; }

@keyframes dashDraw {
    0% { stroke-dashoffset: 2000; fill-opacity: 0; }
    40% { stroke-dashoffset: 0; fill-opacity: 0; }
    50% { stroke-dashoffset: 0; fill-opacity: 0.15; }
    80% { stroke-dashoffset: 0; fill-opacity: 0.15; }
    100% { stroke-dashoffset: -2000; fill-opacity: 0; }
}

/* Pulsing Anchor Nodes */
.node {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseNode 3s ease-in-out infinite;
}
.node-d1 { animation-delay: 0.5s; }
.node-d2 { animation-delay: 1s; }
.node-d3 { animation-delay: 1.5s; }

@keyframes pulseNode {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; fill: #22d3ee; }
}

/* Laser Scanner Beam */
.laser-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #22d3ee;
    box-shadow: 0 0 20px 5px rgba(34, 211, 238, 0.4);
    animation: scan 5s ease-in-out infinite alternate;
    z-index: 5;
}

@keyframes scan {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}

/* Floating Elements */
.float-element {
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Spinning CAD Crosshair */
.spin-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 12s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- Modern Header & Navigation --- */
.status-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); /* Champagne Gold glow */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.status-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

header {
    height: 65px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.header-scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Ensure container fills header height */
header > .max-w-7xl {
    height: 100%;
}

/* Nav Link Underline Animation */
nav a {
    position: relative;
    padding: 0.5rem 0.25rem;
    margin: 0 0.5rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b; /* Amber 500 */
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Logo Shimmer Animation */
.logo-box {
    position: relative;
    overflow: hidden;
}

.logo-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 55%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    pointer-events: none;
}

.logo-box:hover::after {
    left: 100%;
    top: 100%;
}

/* Scroll Progress Line */
#scroll-progress-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #1e40af, #f59e0b);
    width: 0;
    z-index: 60;
    transition: width 0.1s ease-out;
}

/* Mobile Menu Glassmorphism */
#mobile-menu {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    transform: translateY(-10px);
    opacity: 0;
}

#mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
    display: block !important;
}

/* Hero Icon Animations */
.career-icon-float {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.pattern-bg {
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='#e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Gallery Grid Styles */
.gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-grid { column-count: 2; }
}

@media (min-width: 1024px) {
    .gallery-grid { column-count: 3; }
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Gradients */
.text-gradient {
    background: linear-gradient(135deg, #1d4ed8, #3730a3); /* Royal Navy to Indigo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-vibrant {
    background: linear-gradient(135deg, #d4af37, #92400e); /* Champagne Gold to Bronze */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-premium {
    background: radial-gradient(circle at top right, #fafafa, #f4f4f5); /* Soft Zinc */
}

/* Section Dividers */
.section-divider-top {
    position: relative;
    padding-top: 5rem;
}

.section-divider-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #f59e0b;
    border-radius: 2px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 0.5rem;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Spinner Styles */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin-loader 1s ease-in-out infinite;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

.filter-btn.active {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* --- Fees & Pricing Enhancements --- */

.pricing-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card::before {
    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;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card.best-value {
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.pricing-card.best-value::after {
    content: 'BEST VALUE';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #f59e0b;
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-bold: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Glowing Border Effect for hover */
.glow-border:hover {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
    border-color: rgba(30, 64, 175, 0.5);
}

/* Animated Mesh Background */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(220, 100%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(190, 100%, 95%, 1) 0, transparent 50%);
    filter: blur(100px);
    opacity: 0.6;
    animation: meshMove 20s infinite alternate;
}

@keyframes meshMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(5%, 5%); }
}

/* Path Drawing for Journey */
.step-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

/* Number Counting Utility */
.count-up {
    display: inline-block;
}

/* Floating Animation for Icons */
.float-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* --- Courses Page Enhancements --- */

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #1e40af);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.parallax-hero {
    position: relative;
    overflow: hidden;
}

.parallax-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(10, 20, 50, 0.95));
    transform: translateY(0);
    will-change: transform;
}

.industrial-grid {
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Specific Course Module Card Styling */
.course-module-card {
    transition: all 0.4s ease;
    border-left: 0px solid transparent;
}

.course-module-card:hover {
    border-left-width: 8px;
    border-left-color: #f59e0b;
    padding-left: 1.5rem;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.course-module-card .step-number {
    transition: all 0.4s ease;
}

.course-module-card:hover .step-number {
    transform: scale(1.2) rotate(15deg);
    background: #f59e0b;
    color: white;
}

/* Floating Tools Animation */
.tool-icon-float {
    animation: floatTool 6s ease-in-out infinite alternate;
}

@keyframes floatTool {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-15px) rotate(10deg); }
}

/* Software Logo Cards */
.software-logo-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.software-logo-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.8);
    transition: all 0.3s ease;
}

.software-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #f59e0b;
}

.software-logo-card:hover img {
    filter: grayscale(0) opacity(1);
}

/* --- Placement Page Enhancements --- */

/* Infinite Logo Carousel */
.logo-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.logo-carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

.logo-carousel-container:hover .logo-carousel-track {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.recruitment-logo-card {
    flex: 0 0 200px;
    height: 100px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    filter: grayscale(1);
}

.recruitment-logo-card:hover {
    filter: grayscale(0);
    border-color: #f59e0b;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Roadmap Animation */
.roadmap-line-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #f59e0b);
    z-index: -1;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.roadmap-step-circle {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-step-circle.active {
    background: #f59e0b !important;
    color: white !important;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Stat Card Glow */
.stat-card-premium {
    position: relative;
    overflow: hidden;
}

.stat-card-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Floating Career Icons */
.career-icon-float {
    animation: floatCareer 5s ease-in-out infinite alternate;
}

@keyframes floatCareer {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-10px) rotate(5deg); }
}

/* --- Contact Page Enhancements --- */

/* FAQ Accordion */
.faq-accordion-item {
    transition: all 0.3s ease;
}

.faq-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-accordion-item.active {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #f59e0b;
}

.faq-accordion-item.active .faq-content {
    max-height: 500px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(180deg);
    color: #f59e0b;
}

/* FAQ & Accordion Refinements */
.faq-premium-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-premium-item.active .faq-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-premium-item.active .faq-icon {
    transform: rotate(45deg);
    color: #f59e0b;
}

/* Mobile-only accordion for Payment Methods */
@media (min-width: 768px) {
    .mobile-accordion .faq-content {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
    }
    .mobile-accordion .faq-icon {
        display: none !important;
    }
}


/* Form Styles */
.contact-input:focus {
    box-shadow: 0 0 15px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.form-success-message {
    display: none;
    animation: slideInUp 0.6s ease forwards;
}

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

/* Floating Contact Decoration */
.contact-decoration-icon {
    position: absolute;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
}

/* --- Gallery Page Enhancements --- */

/* Clean Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    transition: all 0.5s ease;
}

/* Shuffleable Item */
.gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 350px;
    background: #f1f5f9;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease, 
                box-shadow 0.4s ease;
    will-change: transform, opacity;
}

.gallery-item.filtering {
    transition: none !important; /* Temporarily disable for FLIP */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Spotlight Overlay */
.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .spotlight-overlay {
    opacity: 1;
}

/* Modern Gallery Caption */
.gallery-item .item-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .item-badge {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item .item-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 5;
}

.gallery-item:hover .item-details {
    transform: translateY(0);
    opacity: 1;
}

/* Filter Active Button */
.filter-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

/* --- Course Title Animations --- */

.drafting-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #f59e0b;
    width: 0;
    border-radius: 2px;
}

.drafting-line::after {
    content: '\f303'; /* FontAwesome pencil icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -20px;
    font-size: 1.2rem;
    color: #f59e0b;
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.title-manual-animate.aos-animate .drafting-line {
    animation: drawDraftingLine 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.title-manual-animate.aos-animate .drafting-line::after {
    animation: movePencil 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes drawDraftingLine {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes movePencil {
    0% { left: 0; opacity: 1; transform: rotate(-45deg) translateY(0); }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; transform: rotate(-45deg) translateY(0); }
}

/* Laser Line for CAD */
.laser-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #1e40af;
    width: 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

.laser-line::before {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 4px;
    height: 8px;
    background: #3b82f6;
    box-shadow: 0 0 15px #3b82f6, 0 0 5px #fff;
    border-radius: 2px;
}

.title-cad-animate.aos-animate .laser-line {
    animation: drawLaserLine 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes drawLaserLine {
    0% { width: 0; opacity: 0; }
    20% { opacity: 1; }
    100% { width: 100%; opacity: 1; }
}

/* Shimmer effect for titles */
.title-manual-animate, .title-cad-animate {
    background: linear-gradient(90deg, #111, #444, #111);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Grand Contact Section Styles --- */

.contact-grand-section {
    background: radial-gradient(circle at top right, #f8fafc, #eff6ff);
    position: relative;
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2.5rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.05),
        0 2px 5px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(29, 78, 216, 0.08); /* Royal Navy shadow */
    border-color: rgba(29, 78, 216, 0.15);
}

/* Modern FAQ Accordion */
.faq-premium-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-premium-item.active {
    background: white;
    border-color: #1e40af !important;
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.05);
}

.faq-premium-item.active .faq-icon {
    transform: rotate(45deg);
    color: #1e40af;
}

.faq-premium-item.active .faq-content {
    display: block !important;
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

/* Mobile Bottom Navigation (iOS Style) */
.mobile-bottom-nav {
    display: none;
}

/* Always hide labels — icons only in mobile nav */
.mobile-nav-item span {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 15px; 
        left: 8px;
        right: 8px;
        height: 68px;
        width: calc(100% - 16px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-between; /* Better distribution for many items */
        align-items: center;
        padding: 0 4px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0; /* Allow shrinking */
        color: #5f6368; 
        text-decoration: none;
        transition: all 0.2s ease;
        gap: 2px;
        height: 100%;
        position: relative;
    }

    .nav-icon-wrapper {
        width: 44px; /* Make it a circle for icon-only layout */
        height: 44px;
        border-radius: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-content: center;
        transition: all 0.2s ease;
        position: relative;
        background: transparent;
    }

    .mobile-nav-item i {
        font-size: 1.25rem;
        transition: all 0.2s ease;
        z-index: 2;
    }

    /* Active Pill Indicator (Android Material You Style) */
    .mobile-nav-item.active .nav-icon-wrapper {
        background: rgba(30, 64, 175, 0.12); /* Light Primary Blue Tint */
    }

    .mobile-nav-item.active i {
        color: #1e40af; /* Primary Blue */
        font-weight: 900;
    }

    .mobile-nav-item span {
        display: none !important; /* Hide text to prevent cutoff and show icons only */
    }

    .mobile-nav-item.active span {
        color: #1e40af;
        font-weight: 700;
    }

    /* Remove the old Mac active effects */
    .mobile-nav-item.active .nav-icon-wrapper {
        box-shadow: none;
        transform: none;
    }

    .mobile-nav-item:active .nav-icon-wrapper {
        background: rgba(30, 64, 175, 0.08);
        transform: scale(0.95);
    }

    /* Center Action Button (Android FAB Style) */
    .mobile-nav-item.call-action {
        margin-top: -25px;
        min-width: 55px;
    }

    .call-btn-inner {
        width: 50px; /* Reduced to fit all 7 items */
        height: 50px;
        background: #1e40af; 
        border-radius: 50%; 
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.3rem;
        box-shadow: 0 4px 10px rgba(30, 64, 175, 0.4);
        border: 3px solid white;
        position: relative;
        transition: all 0.2s ease;
    }

    .call-btn-inner:active {
        transform: scale(0.9);
        box-shadow: 0 2px 5px rgba(30, 64, 175, 0.3);
    }

    /* Add padding to body for mobile nav */
    body {
        padding-bottom: 90px;
    }

    /* Hide Mobile Menu & Button */
    #mobile-menu-btn, #mobile-menu {
        display: none !important;
    }

    /* Headerless Design for Mobile */
    header {
        display: none !important;
    }
    main {
        padding-top: 0 !important;
    }
    
    /* Aggressive hero space removal for mobile */
    .hero-bg, .parallax-hero, main > section:first-of-type {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
        min-height: 0 !important;
        height: auto !important;
        display: block !important;
    }

    .hero-bg > div, .parallax-hero > div, main > section:first-of-type > div {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }






    /* Hide Floating WhatsApp on Mobile */
    a[href*="wa.me"] {
        display: none !important;
    }
}
/* Floating Label Form Inputs */
.peer:placeholder-shown ~ label {
    font-size: 1rem;
    top: 1rem;
    color: #94a3b8;
}

.peer:focus ~ label,
.peer:not(:placeholder-shown) ~ label {
    font-size: 0.75rem;
    top: -1rem;
    color: #1e40af;
    font-weight: 700;
}

/* Success Message Refinement */
#successMessage {
    display: none;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

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

/* --- Hero Icon Box (User Request) --- */
.hero-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: floatIcon 3s ease-in-out infinite;
    position: relative;
    z-index: 20;
}

.hero-icon-box i {
    font-size: 2.2rem;
    color: #f59e0b; /* Secondary Amber */
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsive adjustment for small screens */
@media (max-width: 640px) {
    .hero-icon-box {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }
    .hero-icon-box i {
        font-size: 1.8rem;
    }
}


/* Mobile-only accordion for Payment Methods */
@media (max-width: 767px) {
    .mobile-accordion .faq-content {
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        padding-top: 0;
    }
    .mobile-accordion.active .faq-content {
        max-height: 1000px;
        opacity: 1;
        padding-top: 1rem;
    }
}

@media (min-width: 768px) {
    .mobile-accordion .faq-content {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
        padding-top: 0 !important;
    }
    .mobile-accordion .faq-icon {
        display: none !important;
    }
}

