/* ========================================
   CODELINI - Electric Ocean Design System
   Lightweight CSS-Only Website
   ======================================== */

/* CSS Variables - Electric Ocean Palette */
:root {
    /* Primary Brand - Updated with Logo Purple */
    --primary-purple: #5E2A84;
    --primary-purple-dark: #4A2168;
    --primary-deep-blue: #004aad;
    --accent-electric-cyan: #5de0e6;
    --mid-tone-bridge: #2D94CC;

    /* Neutrals & Backgrounds */
    --bg-light: #F4F6F8;
    --bg-dark: #1A0A26;
    --surface-light: #FFFFFF;
    --text-main: #002a4d;
    --text-muted: #64748B;

    /* Additional 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;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple) 50%, #8E44AD 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) translateY(-50%) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo-image {
    width: clamp(100px, 22vw, 140px);
    height: auto;
    margin-bottom: 24px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 5rem);
    color: #FFFFFF;
    letter-spacing: 8px;
    text-shadow: 0 4px 20px rgba(94, 42, 132, 0.4);
    margin-bottom: 12px;
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    padding: 60px 24px;
    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: 40px;
    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: 16px auto 0;
    border-radius: 2px;
}

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

/* Individual Tiles */
.tile {
    padding: 32px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    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.2) 0%, transparent 100%);
    pointer-events: none;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 74, 173, 0.2);
}

.tile-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

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

/* 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-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%, #0A2540 100%);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, #E8EDF2 100%);
    padding: 60px 24px;
}

.contact-section .section-title {
    margin-bottom: 40px;
}

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

.contact-card {
    background: var(--surface-light);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 74, 173, 0.05);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.12);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

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

.contact-card address {
    font-style: normal;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
}

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

.phone-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 24px;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .logo {
        letter-spacing: 4px;
    }

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

    .tile {
        padding: 24px 16px;
    }

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

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

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

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

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

/* Focus States for Accessibility */
.tile:focus,
.contact-card:focus {
    outline: 3px solid var(--accent-electric-cyan);
    outline-offset: 2px;
}