/* ===================================
   Global Ops Co. - Custom Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    color: #8B9E87;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    font-weight: 500;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8B9E87;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #d9cab4 0%, #e8dfd0 50%, #b5c2b1 100%);
    overflow: hidden;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #3b4637;
}

.hero-subtitle {
    font-weight: 300;
    line-height: 1.5;
    color: #475442;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    bottom: -1px;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Value Cards */
.value-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    border-color: #8B9E87;
    box-shadow: 0 20px 25px -5px rgba(139, 158, 135, 0.15), 0 10px 10px -5px rgba(139, 158, 135, 0.08);
    transform: translateY(-5px) scale(1.02);
}

/* Icon Circle */
.icon-circle {
    transition: all 0.3s ease;
}

.value-card:hover .icon-circle {
    transform: rotate(360deg);
    background-color: #8B9E87;
}

.value-card:hover .icon-circle i {
    color: white;
}

/* Statistics Boxes */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    background-color: #f2e6d6;
}

/* Expertise Items */
.expertise-item {
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background-color: #f9fafb;
    transform: translateX(10px);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(139, 158, 135, 0.2);
    border-color: #8B9E87;
    transform: translateY(-8px);
}

/* Form Styles */
input:focus,
textarea:focus {
    border-color: #8B9E87;
    box-shadow: 0 0 0 3px rgba(139, 158, 135, 0.1);
    transition: all 0.3s ease;
}

input,
textarea {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

button[type="submit"] {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(139, 158, 135, 0.2);
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    box-shadow: 0 10px 15px rgba(139, 158, 135, 0.3);
    transform: translateY(-2px);
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit]:hover::before {
    width: 300px;
    height: 300px;
}

/* Form Messages */
.form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Scroll to Top Button */
#scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* Social Media Icons */
footer a:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .value-card,
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B9E87;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d8168;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.8s ease-out forwards;
}

section:nth-child(1) {
    animation-delay: 0s;
}

section:nth-child(2) {
    animation-delay: 0.1s;
}

section:nth-child(3) {
    animation-delay: 0.2s;
}

section:nth-child(4) {
    animation-delay: 0.3s;
}

section:nth-child(5) {
    animation-delay: 0.4s;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #8B9E87 0%, #B8A992 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Hover Effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    width: 400px;
    height: 400px;
}

/* Card Shadow Effects */
.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-custom-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Accessibility - Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #8B9E87;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav,
    footer,
    #scroll-top,
    #mobile-menu-btn {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-link,
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #3b4637;
}

p, li, span {
    font-family: 'Inter', sans-serif;
}

/* Organic Design Elements */
.btn-primary,
.btn-secondary {
    border-radius: 2rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(139, 158, 135, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover {
    box-shadow: 0 10px 15px rgba(139, 158, 135, 0.3);
}

/* Softer Shadows */
.shadow-lg {
    box-shadow: 0 10px 25px rgba(139, 158, 135, 0.15) !important;
}

/* Organic Shapes */
.rounded-xl {
    border-radius: 1.5rem !important;
}