/* Brahmah Oil & Gas - Enhanced CSS Styles */

/* CSS Variables for Design System */
:root {
    --font-size: 14px;
    --background: #ffffff;
    --foreground: #0f172a;
    --primary: #030213;
    --primary-foreground: #ffffff;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --border: rgba(0, 0, 0, 0.1);
    --ring: #3b82f6;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --radius: 0.625rem;
}

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

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.7;
}

/* Enhanced Animations */
@keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(1.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-18%);}
}

@keyframes bounce-fast {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-18%);}
}

@keyframes bounce-inside {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(40%, -40%); }
  20%  { transform: translate(80%, 0); }
  30%  { transform: translate(40%, 40%); }
  40%  { transform: translate(0, 80%); }
  50%  { transform: translate(-40%, 40%); }
  60%  { transform: translate(-80%, 0); }
  70%  { transform: translate(-40%, -40%); }
  80%  { transform: translate(0, -80%); }
  90%  { transform: translate(40%, -40%); }
  100% { transform: translate(0, 0); }
}

/* Animation Classes */
.animate-slide-in-bottom { animation: slideInFromBottom 1s ease-out; }
.animate-slide-in-top { animation: slideInFromTop 1s ease-out; }
.animate-slide-in-left { animation: slideInFromLeft 1s ease-out; }
.animate-slide-in-right { animation: slideInFromRight 1s ease-out; }
.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-zoom-in { animation: zoomIn 1s ease-out; }
.animate-spin-slow {
  animation: spin 2.5s linear infinite;
}
.animate-bounce-slow {
  animation: bounce 2s infinite;
}
.animate-bounce-fast {
  animation: bounce-fast 0.5s infinite;
}
.animate-bounce-inside {
  animation: bounce-inside 0.5s infinite;
}

/* Delay Classes */
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Page Transitions */
.page-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-content.hidden {
    display: none;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    color: #374151;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-link:hover { color: #2563eb; }
.nav-link.active { color: #2563eb; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
    border-radius: 1px;
}

.mobile-nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Forms */
input, textarea, select {
    outline: none;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    width: 100%;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea { resize: vertical; min-height: 120px; }

/* Buttons */
button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: var(--radius);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Component Styles */
.service-card, .client-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover, .client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
#lightbox {
    backdrop-filter: blur(4px);
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Toast */
#success-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .service-card, .client-card { padding: 1.5rem; }
}

@media (max-width: 640px) {
    .service-card, .client-card { padding: 1rem; }
}

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

*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}