/* -------------------------------------------------------------
   Taj Computer Solutions Pvt. Ltd. — Global Design System (main.css)
   Logo Palette: Light Cyan / Ocean Blue to Royal Cobalt Blue
   Smooth Animated Gradient Slide-Fill Button Hover System
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
    /* Brand Color Palette (Derived from Logo) */
    --color-blue-primary: #1d4ed8;       /* Royal Cobalt Blue */
    --color-blue-hover: #1e40af;
    --color-blue-dark: #1e3a8a;          /* Deep Slate Ocean Blue */
    --color-cyan-primary: #0284c7;       /* Ocean Cyan */
    --color-cyan-light: #06b6d4;
    --color-teal-accent: #22b8cf;        /* Logo Bar Left Accent */
    --color-blue-glow: rgba(2, 132, 199, 0.08);
    
    /* Text Colors */
    --color-text-heading: #0f172a;       /* Deep Slate */
    --color-text-body: #334155;          /* Charcoal Body Copy */
    --color-text-muted: #64748b;         /* Muted Subtitles */
    --color-text-light: #ffffff;
    
    /* Light Backgrounds & Surfaces */
    --color-bg-page: #f8fafc;            /* Clean Page Background */
    --color-bg-card: #ffffff;            /* Pure White Card */
    --color-bg-subtle: rgba(240, 247, 255, 0.7); /* Semi-transparent for seamless grid flow */
    --color-border: #e2e8f0;            /* Soft Border */
    --color-border-active: #bae6fd;     /* Active Cyan Border */
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.1), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
    --shadow-3d: 0 20px 40px -10px rgba(29, 78, 216, 0.15), 0 10px 20px -5px rgba(2, 132, 199, 0.1);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Mouse Cursor Spotlight Variables */
    --mouse-x: -600px;
    --mouse-y: -600px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Universal Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    position: relative;
}

/* Seamless Tech Grid Parallax Background */
.tech-grid-bg-overlay {
    position: fixed;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100vh + 120px);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.09) 1.2px, transparent 1.2px),
        linear-gradient(to right, rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
    background-size: 36px 36px, 36px 36px, 36px 36px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    opacity: 0.95;
}

/* Real-Time Soft Feathered Mouse Cursor Spotlight Glow Layer */
.mouse-spotlight-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        220px circle at var(--mouse-x, -600px) var(--mouse-y, -600px),
        rgba(2, 132, 199, 0.14) 0%,
        rgba(2, 132, 199, 0.06) 35%,
        rgba(29, 78, 216, 0.02) 65%,
        transparent 100%
    );
    will-change: background;
}

/* Fading Mouse Trail Canvas Layer */
.mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Scroll Reveal Animation Utility Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Central Page Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Refined Typography Weights */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.25;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); letter-spacing: -0.015em; font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
p:last-child { margin-bottom: 0; }

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

a:hover {
    color: var(--color-cyan-primary);
}

/* Section Kickers */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Responsive Buttons with Animated Gradient Fill Sweep Effect */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sliding Gradient Background Overlay Element */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan-primary) 0%, var(--color-blue-primary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.btn-primary::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(29, 78, 216, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-blue-dark);
    border: 1px solid var(--color-border-active);
    box-shadow: var(--shadow-sm);
}

.btn-secondary::before {
    background: linear-gradient(135deg, var(--color-cyan-primary) 0%, var(--color-blue-primary) 100%);
}

.btn-secondary:hover {
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.3);
}

.btn-secondary:hover i {
    color: #ffffff !important;
}

.btn-outline {
    background: #ffffff;
    color: var(--color-blue-dark);
    border: 1px solid var(--color-border);
}

.btn-outline::before {
    background: linear-gradient(135deg, var(--color-cyan-primary) 0%, var(--color-blue-primary) 100%);
}

.btn-outline:hover {
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.28);
}

.btn-outline:hover i {
    color: #ffffff !important;
}

/* Hover Sweep Trigger */
.btn:hover::before {
    transform: scaleX(1);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

/* Sections & Semi-Transparent Backgrounds */
.section {
    padding: 4.5rem 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.section-sm {
    padding: 2.5rem 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.section-bg-alt {
    background-color: rgba(240, 247, 255, 0.65);
    backdrop-filter: blur(2px);
}

.section-bg-banner {
    background: radial-gradient(circle at 50% 35%, #2563eb 0%, #1d4ed8 45%, #0f2b66 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.section-bg-banner h2 {
    color: #ffffff !important;
}

.section-bg-banner p {
    color: #e2e8f0 !important;
}

.section-bg-banner .section-kicker {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.section-bg-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.section-bg-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.section-bg-banner .btn-primary {
    background: #ffffff;
    color: #0052ff;
    border: 1px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.section-bg-banner .btn-primary:hover {
    background: #f0f7ff;
    color: #0040cc;
    transform: translateY(-2px);
}

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

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Multi-Breakpoint Grid System */
.grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* iPad & Tablet Landscape / Portrait (1024px and down) */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 3.25rem 0; }
}

/* Mobile Screens (<768px) */
@media (max-width: 768px) {
    .grid { gap: 1.25rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .btn {
        width: 100%;
        display: flex;
    }
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

