/* ========================================
   CODELINI RISE PRIVATE LIMITED
   Electric Ocean Design System — Premium
   ======================================== */

/* CSS Variables — Electric Ocean Palette */
:root {
    /* Primary Brand */
    --primary-deep-blue: #004aad;
    --primary-blue-dark: #003580;
    --accent-electric-cyan: #5de0e6;
    --accent-cyan-muted: #48b8c0;
    --mid-tone-bridge: #2D94CC;

    /* Purple Accent (Logo) */
    --primary-purple: #5E2A84;
    --primary-purple-dark: #4A2168;

    /* Neutrals & Backgrounds */
    --bg-light: #F4F6F8;
    --bg-section-alt: #EDF1F5;
    --bg-dark: #001A33;
    --surface-light: #FFFFFF;
    --surface-dark: #0A2540;
    --text-main: #002a4d;
    --text-muted: #64748B;
    --text-on-dark: rgba(255, 255, 255, 0.85);

    /* Tile Colors */
    --tile-coral: #FF6B6B;
    --tile-purple: #9B59B6;
    --tile-green: #2ECC71;
    --tile-orange: #F39C12;
    --tile-pink: #E91E63;
    --tile-teal: #00BCD4;
    --tile-indigo: #3F51B5;
    --tile-amber: #FF9800;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 60px;
    --space-3xl: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 500;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--ease-out);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 26, 51, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(93, 224, 230, 0.12);
    padding: 0 var(--space-lg);
    height: 64px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-brand-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #FFFFFF;
    letter-spacing: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-on-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-electric-cyan);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-electric-cyan);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--primary-deep-blue) 40%, var(--primary-purple) 80%, var(--primary-purple-dark) 100%);
    padding: 140px var(--space-lg) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated geometric background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-electric-cyan);
    top: -200px;
    right: -100px;
    animation: float-slow 18s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--mid-tone-bridge);
    bottom: -120px;
    left: -80px;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-electric-cyan);
    top: 40%;
    left: 60%;
    animation: float-slow 14s ease-in-out infinite 3s;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Subtle grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93, 224, 230, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 224, 230, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.logo-image {
    width: clamp(100px, 20vw, 140px);
    height: auto;
    margin: 0 auto var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(93, 224, 230, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

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

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 5rem);
    color: #FFFFFF;
    letter-spacing: 10px;
    text-shadow: 0 2px 30px rgba(93, 224, 230, 0.25);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--accent-electric-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero-legal-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.5px;
    margin-bottom: var(--space-xl);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-electric-cyan);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(93, 224, 230, 0.25);
}

.btn-primary:hover {
    background: #4dd0d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(93, 224, 230, 0.35);
}

.btn-outline {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    border-color: var(--accent-electric-cyan);
    color: var(--accent-electric-cyan);
    transform: translateY(-2px);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
}

.about-lead {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-cin {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
    display: inline-block;
    background: rgba(0, 74, 173, 0.06);
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 74, 173, 0.1);
}

.about-cin strong {
    color: var(--primary-deep-blue);
    font-weight: 600;
}

.about-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 74, 173, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary-deep-blue);
    font-variant: tabular-nums;
    line-height: 1.1;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-deep-blue);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-deep-blue), var(--accent-electric-cyan));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

/* Tiles Grid */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

/* Individual Tiles */
.tile {
    padding: 28px 20px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 74, 173, 0.2);
}

.tile-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.tile h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.tile-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Tile Color Variations */
.tile-1 { background: linear-gradient(135deg, var(--primary-deep-blue) 0%, var(--mid-tone-bridge) 100%); }
.tile-2 { background: linear-gradient(135deg, var(--accent-electric-cyan) 0%, #4DD0E1 100%); }
.tile-2 h3 { color: var(--bg-dark); }
.tile-2 .tile-desc { color: rgba(0, 26, 51, 0.65); }
.tile-3 { background: linear-gradient(135deg, var(--tile-purple) 0%, #8E44AD 100%); }
.tile-4 { background: linear-gradient(135deg, var(--tile-coral) 0%, #E74C3C 100%); }
.tile-5 { background: linear-gradient(135deg, var(--tile-green) 0%, #27AE60 100%); }
.tile-6 { background: linear-gradient(135deg, var(--tile-indigo) 0%, #303F9F 100%); }
.tile-7 { background: linear-gradient(135deg, var(--tile-orange) 0%, #E67E22 100%); }
.tile-8 { background: linear-gradient(135deg, var(--tile-pink) 0%, #C2185B 100%); }
.tile-9 { background: linear-gradient(135deg, var(--tile-teal) 0%, #0097A7 100%); }
.tile-10 { background: linear-gradient(135deg, var(--mid-tone-bridge) 0%, var(--primary-deep-blue) 100%); }
.tile-11 { background: linear-gradient(135deg, var(--tile-amber) 0%, #F57C00 100%); }
.tile-12 { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--surface-dark) 100%); }

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-section-alt) 100%);
    padding: var(--space-3xl) var(--space-lg);
}

.contact-section .section-title {
    margin-bottom: var(--space-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--surface-light);
    padding: 36px var(--space-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 74, 173, 0.06);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
    border: 1px solid rgba(0, 74, 173, 0.06);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 74, 173, 0.12);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.contact-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-deep-blue);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card address {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.9;
}

.contact-card address strong {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-deep-blue);
}

.phone-number,
.email {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-deep-blue);
    margin-bottom: var(--space-xs);
}

.contact-link {
    color: var(--primary-deep-blue);
    transition: color 0.2s var(--ease-out);
}

.contact-link:hover {
    color: var(--mid-tone-bridge);
}

.phone-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.phone-label:last-child {
    margin-bottom: 0;
}

/* ========================================
   FOOTER — Full Business Identity
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: var(--space-xl) var(--space-lg);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.9;
}

.footer-brand-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.footer-info {
    margin-bottom: var(--space-lg);
}

.footer-address {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.footer-contact-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s var(--ease-out);
}

.footer-link:hover {
    color: var(--accent-electric-cyan);
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-xs);
}

.footer-bottom strong {
    color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.25) !important;
    letter-spacing: 0.5px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 120px 20px var(--space-2xl);
        min-height: 75vh;
    }

    .logo {
        letter-spacing: 5px;
    }

    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tile {
        padding: 20px 14px 18px;
    }

    .tile-icon {
        font-size: 1.8rem;
    }

    .tile h3 {
        font-size: 0.9rem;
    }

    .tile-desc {
        font-size: 0.72rem;
    }

    .nav-links {
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .about-stats {
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .footer-links {
        gap: var(--space-md);
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tiles-container {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-brand-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus States */
.tile:focus,
.contact-card:focus,
.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 3px solid var(--accent-electric-cyan);
    outline-offset: 3px;
}

/* Selection Color */
::selection {
    background: rgba(93, 224, 230, 0.25);
    color: var(--text-main);
}

/* Smooth Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-tone-bridge);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-deep-blue);
}