/* ==========================================================================
   TEJAS DIGITECH SOLUTIONS - GLOBAL DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Fonts Import */
/* @import removed for performance */

/* Variables */
:root {
    /* Color Palette */
    --bg-primary: #05070f;
    --bg-secondary: #0c0f1d;
    --bg-accent: #0f152d;
    --brand-primary: #5ae081;
    --brand-secondary: #22c55e;
    --brand-dark: #15803d;
    --brand-glow: rgba(90, 224, 129, 0.25);
    --brand-glow-subtle: rgba(90, 224, 129, 0.05);
    --cyan-accent: #00f2fe;
    
    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Structural Elements */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(90, 224, 129, 0.3);
    
    /* Typography Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Grid & Flex Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Background Gradients & Mesh Glows */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.glow-spot-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(90, 224, 129, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: drift 20s infinite alternate;
}

.glow-spot-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Typography & Shining Text */
.shiny-text {
    background: linear-gradient(to right, #ffffff 20%, var(--brand-primary) 40%, var(--cyan-accent) 60%, #ffffff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine-text 5s linear infinite;
}

.accent-text {
    color: var(--brand-primary);
    text-shadow: 0 0 15px var(--brand-glow);
}

@keyframes shine-text {
    to { background-position: -200% center; }
}

/* Buttons with Shining Light Sweep */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(90, 224, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 224, 129, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* The Shining Sweep Sweep Animation Overlay */
.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-shine:hover::before {
    animation: shine-sweep 1.2s ease-in-out infinite;
}

@keyframes shine-sweep {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* Glassmorphism Cards & Sections */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 35px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), rgba(90, 224, 129, 0.08), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 30px rgba(90, 224, 129, 0.08);
}

/* Dynamic Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.scrolled {
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1010;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Sidebar Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-accent);
    border-left: 1px solid var(--glass-border);
    z-index: 1005;
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: all var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--brand-primary);
    padding-left: 10px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Footer Styling */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 450px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--brand-primary);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--brand-glow);
}

.footer-links-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brand-primary);
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links-col a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--brand-primary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--brand-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 10px rgba(90, 224, 129, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* File Upload input custom styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-upload-wrapper:hover {
    border-color: var(--brand-primary);
    background: rgba(90, 224, 129, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-muted);
}

.file-upload-text i {
    font-size: 24px;
    color: var(--brand-primary);
    margin-bottom: 10px;
    display: block;
}

/* Section Header Component */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    text-transform: uppercase;
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    text-shadow: 0 0 15px var(--brand-glow);
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Modal Popup Confirmation */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-accent);
    border: 1px solid var(--brand-primary);
    box-shadow: 0 0 30px var(--brand-glow);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 50px;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Sub-page Banner */
.subpage-banner {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.subpage-banner .container {
    position: relative;
    z-index: 2;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .nav-actions .btn-secondary {
        display: none;
    }
    .burger {
        display: flex;
    }
    .section-title {
        font-size: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
