/* Custom Styles for Techily Fly International Home Page */

/* <!-- Hamburger Styles --> */
/* Clean Hamburger Styles */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100; /* Must be higher than mobile-menu z-index */
    position: relative;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #374151;
    border-radius: 2px;
    transition: 0.3s ease-in-out;
}

/* Animation to 'X' */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ensure mobile menu is hidden properly */
#mobile-menu {
    z-index: 9998; /* Just below the header bar */
    transition: transform 0.3s ease-in-out;
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
    .hamburger { display: none; }
}

        /* Custom Tailwind Configuration */
        :root {
            --cyber-purple: #8A2BE2;
            --black: #000000;
            --white: #FFFFFF;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--white);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .gradient-text {
        background: linear-gradient(to right, #7c3aed, #2563eb);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

  

   

        /* Glassmorphism Card Effect */
        .glass-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            box-shadow: 0 8px 32px 0 rgba(138, 43, 226, 0.1);
        }

        /* Gradient Background */
        .gradient-bg {
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
        }

        .gradient-text {
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Sticky Header */
/* Fix Header Z-Index and Sticky behavior */
header {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important; /* Extremely high to stay above all content */
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

        /* Navigation Hover Effects */
        nav a {
            transition: all 0.3s ease;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 100%;
        }

        /* Button Styles */
        .btn-primary {
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
            color: white;
            padding: 12px 28px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
        }

        .btn-secondary {
            background-color: white;
            color: var(--cyber-purple);
            padding: 12px 28px;
            border-radius: 8px;
            border: 2px solid var(--cyber-purple);
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
            color: white;
            transform: translateY(-2px);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: white;
            padding: 30px;
            border-radius: 12px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .close-btn {
            float: right;
            font-size: 28px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
            border: none;
            background: none;
            transition: color 0.3s ease;
        }

        .close-btn:hover {
            color: var(--cyber-purple);
        }

        /* Back to Top Button */
/* Move Back to Top to the LEFT side */
#backToTop {
    position: fixed;
    left: 20px; /* Positioned on the left */
    right: auto; /* Disable right positioning */
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
    color: white;
    border-radius: 50%;
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#backToTop.show {
    display: flex; /* Script will add this class on scroll */
}


        #backToTop:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
        }

        /* Form Styles */
        input, textarea, select {
            width: 100%;
            padding: 16px 18px;
            margin: 8px 0;
            border: 2px solid #d0d0d0;
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            transition: all 0.3s ease;
            background-color: #fafafa;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        input:hover, textarea:hover, select:hover {
            border-color: #a78bdb;
            background-color: #faf8ff;
            box-shadow: 0 4px 12px rgba(138, 43, 226, 0.1);
            transform: translateY(-1px);
        }

        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--cyber-purple);
            box-shadow: 0 0 0 5px rgba(138, 43, 226, 0.2);
            background-color: #ffffff;
            transform: translateY(-2px);
        }

        textarea {
            resize: vertical;
            min-height: 100px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        input[type="checkbox"] {
            width: auto;
            margin: 0;
            cursor: pointer;
            accent-color: var(--cyber-purple);
        }

        input[type="radio"] {
            width: auto;
            margin: 0;
            cursor: pointer;
            accent-color: var(--cyber-purple);
        }

        .form-error {
            color: #dc2626;
            font-size: 13px;
            margin-top: 8px;
            margin-bottom: 10px;
            display: none;
            font-weight: 600;
            background-color: #fee2e2;
            padding: 8px 12px;
            border-radius: 6px;
            border-left: 3px solid #dc2626;
        }

        .form-error.show {
            display: block;
        }

        .form-success {
            color: #16a34a;
            font-size: 12px;
            margin-top: -6px;
            margin-bottom: 8px;
        }

        /* Form Section Cards */
        .form-section {
            background: white;
            padding: 24px;
            margin-bottom: 24px;
            border-radius: 12px;
            border-left: 4px solid var(--cyber-purple);
            box-shadow: 0 2px 8px rgba(138, 43, 226, 0.08);
        }

        .form-section h3 {
            color: var(--cyber-purple);
            font-size: 18px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            font-weight: 600;
            font-size: 14px;
            color: #222;
            margin-bottom: 10px;
            display: block;
            letter-spacing: 0.3px;
        }

        .form-group label .text-red-600 {
            margin-left: 3px;
            color: #dc2626;
            font-weight: 700;
        }

        /* Enhanced form container */
        .form-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
        }

        .form-card.featured {
            background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(138, 43, 226, 0.02) 100%);
            border: 2px solid rgba(138, 43, 226, 0.1);
        }

        .checkbox-group label, .radio-group label {
            display: flex;
            align-items: center;
            padding: 12px 14px;
            background: #fafafa;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .checkbox-group label:hover, .radio-group label:hover {
            background: #f0e6ff;
            border-color: var(--cyber-purple);
            box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
            transform: translateY(-1px);
        }

        .checkbox-group label:focus-within, .radio-group label:focus-within {
            outline: 2px solid var(--cyber-purple);
            outline-offset: 2px;
        }

        .checkbox-group input, .radio-group input {
            margin-right: 8px;
        }

      

        @media (max-width: 768px) {

            /* Mobile form improvements */
            .checkbox-group, .radio-group {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .file-upload-grid {
                grid-template-columns: 1fr !important;
            }

            .glass-card {
                padding: 16px;
            }

            section {
                padding: 30px 16px;
            }

            /* Improve touch targets */
            input[type="checkbox"],
            input[type="radio"] {
                width: 20px;
                height: 20px;
                min-width: 20px;
                min-height: 20px;
            }

            .checkbox-group label,
            .radio-group label {
                padding: 12px 10px;
            }

            /* Better file upload on mobile */
            .file-input-label {
                padding: 16px 12px;
                font-size: 13px;
            }

            /* Form section on mobile */
            .form-section {
                padding: 16px;
                margin-bottom: 16px;
            }

            /* Other language box on mobile */
            #otherLanguageBox {
                font-size: 14px;
            }
        }

        /* Section Spacing */
        section {
            padding: 60px 20px;
        }

        /* Section Container with Background */
        section.bg-white {
            background-color: #ffffff;
        }

        section.bg-gray-50 {
            background-color: #f9fafb;
        }

        /* Enhanced section title styling */
        section h2 {
            position: relative;
        }

        /* Underline for section headings */
        .section-heading {
            position: relative;
            display: inline-block;
            padding-bottom: 10px;
        }

        .section-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
            border-radius: 2px;
        }

        @media (max-width: 768px) {
            section {
                padding: 40px 20px;
            }
        }

        /* Animation for elements */
        .fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Statistics Counter */
        .stat-item h3 {
            color: var(--cyber-purple);
            font-size: 32px;
            font-weight: bold;
        }

        /* Service Cards Grid */
        .service-grid, .training-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin-top: 30px;
        }

        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* File Upload Styles */
        .file-input-wrapper {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .file-input-wrapper input[type="file"] {
            display: none;
        }

        .file-input-label {
            display: block;
            padding: 20px;
            border: 2px dashed var(--cyber-purple);
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: #f9f5ff;
            font-weight: 500;
        }

        .file-input-label:hover {
            background-color: #f0e6ff;
            border-color: #000;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
        }

        .file-name {
            display: block;
            margin-top: 8px;
            font-size: 12px;
            color: #666;
        }

        .file-upload-section {
            background: white;
            padding: 24px;
            border-radius: 12px;
            border-top: 4px solid var(--cyber-purple);
            margin-bottom: 24px;
        }

        .file-upload-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
        }

        @media (max-width: 768px) {
            .file-upload-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Loading Indicator */
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--cyber-purple);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


   @media (max-width: 768px) {


            .nav-menu {
                position: absolute;
                left: -100%;
                top: 70px;
                flex-direction: column;
                background-color: white;
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-item {
                margin: 16px 0;
            }}

        /* Cyber Purple & Black Gradient */
        .gradient-bg {
            background: linear-gradient(135deg, #8A2BE2 0%, #000000 100%);
        }
        
        /* Glassmorphism effect */
        .glass-card {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        }
        
        .glass-card-dark {
            background: rgba(138, 43, 226, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(138, 43, 226, 0.2);
        }
        
        /* Gradient text */
        .gradient-text {
            background: linear-gradient(135deg, #8A2BE2, #000000);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #8A2BE2;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #6a1bb2;
        }
        
        /* Modal styling */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(2px);
        }
        
        
        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 15px;
            max-width: 500px;
            width: 90%;
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        }
        
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 28px;
            font-weight: bold;
            color: #8A2BE2;
            cursor: pointer;
            background: none;
            border: none;
        }
        
        .close-btn:hover {
            color: #000000;
        }
        
        /* Smooth transitions */
        * {
            transition: all 0.3s ease;
        }
        
        input, select, textarea {
            border: 2px solid #e5e7eb !important;
        }
        
        input:focus, select:focus, textarea:focus {
            border-color: #8A2BE2 !important;
            box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1) !important;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #8A2BE2, #6a1bb2);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .btn-primary:hover {
            box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background: white;
            color: #8A2BE2;
            border: 2px solid #8A2BE2;
            padding: 10px 25px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .btn-secondary:hover {
            background: #8A2BE2;
            color: white;
        }
        
        /* Checkbox styling */
        .checkbox-container input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #8A2BE2;
        }
        
        .error {
            color: #dc2626;
            font-size: 14px;
            margin-top: 5px;
        }
        
        .success {
            color: #16a34a;
            font-size: 14px;
        }
