/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Color Palette - Copper/Bronze Theme */
:root {
    --copper: #d4a574;
    --copper-dark: #b8935f;
    --copper-light: #e8c9a0;
    --bg-dark: #0a0a0f;
    --bg-medium: #1a1a2e;
    --bg-light: #16213e;
}

/* Tailwind Custom Colors */
@layer utilities {
    .text-copper {
        color: var(--copper);
    }
    .bg-copper {
        background-color: var(--copper);
    }
    .border-copper {
        border-color: var(--copper);
    }
    .bg-copper\/5 {
        background-color: rgba(212, 165, 116, 0.05);
    }
    .bg-copper\/10 {
        background-color: rgba(212, 165, 116, 0.1);
    }
    .bg-copper\/20 {
        background-color: rgba(212, 165, 116, 0.2);
    }
    .border-copper\/20 {
        border-color: rgba(212, 165, 116, 0.2);
    }
    .border-copper\/30 {
        border-color: rgba(212, 165, 116, 0.3);
    }
    .from-copper\/10 {
        --tw-gradient-from: rgba(212, 165, 116, 0.1);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(212, 165, 116, 0));
    }
    .from-copper\/20 {
        --tw-gradient-from: rgba(212, 165, 116, 0.2);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(212, 165, 116, 0));
    }
    .via-copper\/10 {
        --tw-gradient-to: rgba(212, 165, 116, 0.1);
        --tw-gradient-stops: var(--tw-gradient-from), rgba(212, 165, 116, 0.1), var(--tw-gradient-to, rgba(212, 165, 116, 0));
    }
    .to-copper\/5 {
        --tw-gradient-to: rgba(212, 165, 116, 0.05);
    }
    .focus\:border-copper:focus {
        border-color: var(--copper);
    }
    .focus\:ring-copper\/20:focus {
        --tw-ring-color: rgba(212, 165, 116, 0.2);
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
}

/* Display Font for Headings */
.font-display {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Navigation Styles */
#mainNav {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

#mainNav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--copper);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--copper);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-mobile {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 0;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--copper);
    padding-left: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.1);
    color: var(--copper);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: var(--copper);
    color: #0a0a0f;
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: auto; /* Prevent unwanted transforms */
}

.about-hero,
.subsidiaries-hero,
.contact-hero {
    position: relative;
    transform: translateZ(0);
    will-change: auto;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.floating-shapes::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shapes::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.6;
    }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    animation: floatCard 6s infinite ease-in-out;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.main-visual-element {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    transform: translateZ(0);
    will-change: auto;
}

.geometric-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    position: relative;
    animation: pulse 4s infinite ease-in-out;
}

.geometric-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s infinite ease-in-out;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--copper);
    color: #0a0a0f;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--copper);
}

.btn-primary:hover {
    background: transparent;
    color: var(--copper);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--copper);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--copper);
}

.btn-secondary:hover {
    background: var(--copper);
    color: #0a0a0f;
    transform: translateY(-2px);
}

/* Stat Boxes */
.stat-box {
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.stat-box:hover {
    transform: translateY(-5px) translateZ(0);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.1);
}

.hero-decorative {
    transition: all 0.3s ease;
}

/* Content Cards */
.content-card {
    transition: all 0.3s ease;
    transform: translateZ(0); /* Prevent layout shifts */
}

.content-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 165, 116, 0.5);
}

/* Subsidiary Cards */
.subsidiary-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.subsidiary-card .card-inner {
    padding: 2rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    transform: translateZ(0);
}

.subsidiary-card:hover .card-inner {
    transform: translateY(-10px) translateZ(0);
    border-color: rgba(212, 165, 116, 0.5);
    background: rgba(26, 26, 46, 0.9);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
}

/* Timeline */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    background: linear-gradient(to bottom, var(--copper), rgba(212, 165, 116, 0.3));
}

.timeline-dot {
    position: relative;
    width: 24px;
    height: 24px;
    background: var(--copper);
    border-radius: 50%;
    border: 4px solid #0a0a0f;
    z-index: 10;
    flex-shrink: 0;
}

.dot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0a0a0f;
    border-radius: 50%;
}

.timeline-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

.timeline-visual {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.timeline-item.visible .timeline-visual {
    opacity: 1;
    transform: scale(1);
}

/* Value Cards */
.value-card {
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02) translateZ(0);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
}

/* Contact Form */
.contact-form-card input,
.contact-form-card textarea {
    transition: all 0.3s ease;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    transform: translateY(-2px);
}

.contact-info-card {
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.contact-info-card:hover {
    transform: translateY(-5px) rotate(0deg) translateZ(0) !important;
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
}

.contact-icon-large {
    flex-shrink: 0;
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--copper);
    padding-left: 0.5rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        transform: none !important;
        animation: none;
    }
    
    .main-visual-element {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .hero-content {
        transform: none !important;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-dot {
        margin: 1rem 0;
    }
    
    /* Reset all transforms on mobile to prevent issues */
    [class*="lg:transform"] {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem !important;
    }
    
    .main-visual-element {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--copper);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Print Styles */
@media print {
    .floating-shapes,
    .floating-card,
    nav {
        display: none;
    }
}

