/*
    SD RAJ ENTERPRISES PVT LTD 
    Premium Custom Styling
*/

:root {
  --royal: #1E3A8A;
  --red: #B91C1C;
  --gold: #D4AF37;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #F8FAFC;
  color: #1E293B;
  font-family: 'Inter', sans-serif;
}

::selection {
  background: var(--royal);
  color: #ffffff;
}

/* Base Gradients */
.blue-gradient { background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%); }
.gold-gradient { background: linear-gradient(135deg, #D4AF37 0%, #F5E0A3 50%, #B8860B 100%); }
.red-gradient { background: linear-gradient(135deg, #B91C1C 0%, #EF4444 100%); }

/* Refactored Glass Base for optimal performance and maintainability */
.glass, .glass-nav, .service-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass, .service-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.animate-ken-burns {
    animation: ken-burns 20s ease-out forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.service-card {
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.1);
}

/* Card border accents pattern */
.service-card:nth-child(3n+1) { border-top: 4px solid var(--royal); }
.service-card:nth-child(3n+2) { border-top: 4px solid var(--red); }
.service-card:nth-child(3n) { border-top: 4px solid var(--gold); }

.service-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
    margin: 1.25rem 1.25rem 0 1.25rem;
    border-radius: 0.75rem;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.service-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.role-tag {
    color: var(--royal);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-tag::before {
    content: "•";
    margin-right: 0.25rem;
}

.service-card:nth-child(3n+2) .role-tag { color: var(--red); }
.service-card:nth-child(3n) .role-tag { color: #b45309; }

.service-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--royal);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover .service-cta {
    color: var(--red);
}

/* Form Validation Styles */
.was-validated input:invalid, 
.was-validated textarea:invalid,
.was-validated select:invalid {
    border-color: #ef4444;
}

.was-validated input:invalid:focus, 
.was-validated textarea:invalid:focus,
.was-validated select:invalid:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.was-validated input:invalid ~ .invalid-feedback, 
.was-validated textarea:invalid ~ .invalid-feedback,
.was-validated select:invalid ~ .invalid-feedback {
    display: block;
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
