/* 
 * ITK Information Services - Modern Design System
 */

:root {
    /* Color Palette - Premium HSL */
    --primary-h: 210;
    --primary-s: 100%;
    --primary-l: 25%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 40%);
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 15%);

    --accent-h: 30;
    --accent-s: 100%;
    --accent-l: 60%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));

    --bg-light: hsl(220, 20%, 98%);
    --bg-dark: hsl(220, 30%, 10%);
    --text-main: hsl(220, 20%, 20%);
    --text-muted: hsl(220, 10%, 45%);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-unit: 1rem;
    --space-xs: calc(var(--space-unit) * 0.5);
    --space-sm: var(--space-unit);
    --space-md: calc(var(--space-unit) * 2);
    --space-lg: calc(var(--space-unit) * 4);
    --space-xl: calc(var(--space-unit) * 8);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* Animation Transitions */
    --transition-fast: 0.2s ease;
    --transition-standard: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

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

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

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

section {
    padding: var(--space-xl) 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Animations - Initial Hidden States */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important; /* Ensure high contrast */
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff !important;
}

/* Navigation - Modern Sticky */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-standard);
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 0.8rem 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Increased from 40px */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(7, 69, 126, 0.1) 0%, transparent 70%);
    z-index: 0;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-standard);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card h3 {
    margin-top: 1.5rem;
}

/* Testimonials & Team */
.testimonials-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card, .team-member {
    padding: 2.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-standard);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid var(--bg-light);
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
    opacity: 0.2;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px rgba(7, 69, 126, 0.1);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-grid img {
    max-height: 60px;
    filter: none; /* Color version requested */
    opacity: 1;
    transition: var(--transition-standard);
}

.client-grid img:hover {
    transform: scale(1.1);
}

/* Press Section */
.press-content img {
    max-width: 300px;
    margin: 0 auto;
    transition: var(--transition-standard);
    filter: drop-shadow(var(--shadow-md));
}

/* Press Section Expand */
.press-content {
    position: relative;
    cursor: zoom-in;
}

.press-preview-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90vw;
    height: 90vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-standard);
    border-radius: 20px;
    padding: 2rem;
}

.press-preview-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.press-content:hover .press-preview-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Footer Section */
.contact-section {
    background: var(--bg-dark);
    color: #ffffff; /* Explicit high contrast white */
    text-align: center;
}

.contact-section h2 {
    color: #ffffff;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-methods a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-methods a:hover {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
    }
    .timeline-content {
        width: calc(100% - 60px);
        text-align: left !important;
    }
    .timeline-dot {
        margin-left: 12px;
    }
}
