/* Variables and Custom Properties */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --burgundy: #800020;
    --burgundy-light: #a3314a;
    --burgundy-dark: #4a0012;
    --text-color: #2d3436;
    --border-color: #e9ecef;
    --shadow-color: rgba(128, 0, 32, 0.1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* Reset and Base Styles with Performance Optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
    .privacy-section,
    .contact-info {
        will-change: transform;
        transform: translateZ(0);
    }
}

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Modern Container Style - Expanded */
.container {
    max-width: 1600px; /* Increased from 1200px */
    width: 95%; /* Added to ensure container takes up most of the screen width */
    margin: 0 auto;
    padding-top: clamp(8rem, 12vw, 10rem);  /* Reduced padding */
    position: relative;
}

/* Enhanced Header Styles - Expanded */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    border-radius: 16px;
    box-shadow: 
        0 10px 30px var(--shadow-color),
        0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: headerReveal 1s ease-out;
    width: 100%; /* Ensure header takes full width */
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

@keyframes headerReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.company-logo {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--secondary-color);
    font-weight: 600;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

/* Modern Section Styles with Glass Effect - Expanded */
.privacy-section {
    margin-bottom: 2rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border-left: 4px solid var(--burgundy);
    box-shadow: 
        0 8px 32px rgba(128, 0, 32, 0.1),
        0 4px 16px rgba(128, 0, 32, 0.05);
    transition: var(--transition-smooth);
    animation: sectionFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    width: 100%; /* Ensure section takes full width */
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(128, 0, 32, 0.15),
        0 6px 20px rgba(128, 0, 32, 0.1);
    border-left: 4px solid var(--burgundy-light);
}

h2 {
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--burgundy), var(--burgundy-light));
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.privacy-section:hover h2::after {
    width: 100px;
}

.privacy-section p {
    margin-bottom: 1.2rem;
    text-align: justify;
    color: #4a4a4a;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Enhanced Contact Info Styles - Expanded */
.contact-info {
    background: linear-gradient(135deg, var(--secondary-color), #ffffff);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid var(--burgundy-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 100%; /* Ensure contact info takes full width */
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(128, 0, 32, 0.05) 45%,
        rgba(128, 0, 32, 0.1) 50%,
        rgba(128, 0, 32, 0.05) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.contact-info p {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-info strong {
    color: var(--burgundy);
    font-weight: 600;
}

/* Enhanced Link Styles */
.contact-link {
    color: var(--burgundy);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive Design - Updated for larger screens */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1800px; /* Even larger for 4K displays */
    }

    .privacy-section,
    .contact-info {
        padding: 4rem;
    }

    header {
        padding: 5rem 3rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 98%; /* Slightly increased for mobile */
        padding: 4rem 0.5rem 1rem;
    }

    header {
        margin: 0 0 2rem;
        padding: 2rem 1rem;
        border-radius: 12px;
    }

    .privacy-section {
        padding: 1.5rem;
        margin: 0 0 1.5rem;
        border-radius: 12px;
    }

    .contact-info {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .privacy-section,
    .contact-info,
    .contact-link {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Print Styles */
@media print {
    body {
        background: none;
    }

    header {
        background: none;
        box-shadow: none;
        border: 2px solid var(--burgundy);
    }

    header h1 {
        color: var(--burgundy);
        text-shadow: none;
    }

    .privacy-section {
        break-inside: avoid;
        page-break-inside: avoid;
        background: none;
        box-shadow: none;
        border: 1px solid var(--burgundy);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}