/* ============================================
   ANAND TECHNOLOGIES - Main Stylesheet
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #edf2fb;
    line-height: 1.6;
    color: #000f2e;
}

html {
    scroll-padding-top: 80px; /* Offset for fixed header */
}

/* ============================================
   BACKGROUND COLORS
   ============================================ */
.bg-alice-blue {
    background-color: #edf2fb;
}

.bg-lavender {
    background-color: #e2eafc;
}

.gradient-bg {
    background: linear-gradient(135deg, #000f2e 0%, #001a56 50%, #0033ab 100%);
}

/* ============================================
   CONTAINER
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .main-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   HEADER & LOGO STYLES
   ============================================ */
header {
    transition: box-shadow 0.3s ease;
}

header img[alt*="Logo"] {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

header img[alt*="Logo"]:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Responsive Logo Sizing */
@media (max-width: 767px) {
    header img[alt*="Logo"] {
        height: 2.5rem; /* 40px */
        width: 2.5rem;
    }
    
    header h1 {
        font-size: 1rem; /* 16px */
        line-height: 1.2;
    }
    
    header p {
        font-size: 6px;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    header img[alt*="Logo"] {
        height: 3rem; /* 48px */
        width: 3rem;
    }
}

@media (min-width: 1024px) {
    header img[alt*="Logo"] {
        height: 3.5rem; /* 56px */
        width: 3.5rem;
    }
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
}

/* Mobile Menu Toggle Button - NO hover effects */
header button[aria-label="Toggle Menu"] {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

header button[aria-label="Toggle Menu"]:hover {
    color: #0033ab;
    transform: none !important;
    box-shadow: none !important;
}

header button[aria-label="Toggle Menu"]:active {
    transform: none !important;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 26, 86, 0.15);
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
/* Exclude mobile menu toggle from button hover effects */
button:not([aria-label="Toggle Menu"]),
a.btn {
    transition: all 0.3s ease;
}

button:not([aria-label="Toggle Menu"]):hover,
a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:not([aria-label="Toggle Menu"]):active,
a.btn:active {
    transform: translateY(0);
}

/* Floating Buttons */
.fixed {
    transition: all 0.3s ease;
}

.fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FORM STYLES
   ============================================ */
input,
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #001a56 !important;
    box-shadow: 0 0 0 3px rgba(0, 26, 86, 0.1) !important;
    transform: scale(1.01);
}

input:hover,
textarea:hover,
select:hover {
    border-color: #0033ab;
}

/* Form Message Animation */
#formMessage {
    transition: all 0.3s ease;
}

/* ============================================
   IMAGES
   ============================================ */
img {
    transition: transform 0.3s ease, filter 0.3s ease;
    max-width: 100%;
    height: auto;
}

img:hover {
    transform: scale(1.02);
}

section img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.service-card {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-fadeIn {
    animation: fadeInDown 0.3s ease-in-out;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #edf2fb;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #001a56 0%, #0033ab 100%);
    border-radius: 6px;
    border: 2px solid #edf2fb;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0033ab 0%, #024eff 100%);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #001a56 #edf2fb;
}

/* ============================================
   LOADING SPINNER (for form)
   ============================================ */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0033ab;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ============================================
   SHADOWS & DEPTH
   ============================================ */
.shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.shadow-custom-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 639px) {
    h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    p {
        font-size: 0.9rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.gradient-bg {
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
    display: grid;
}

/* Responsive Grid Gap */
@media (max-width: 767px) {
    .grid {
        gap: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #000f2e 0%, #001542 100%);
}

footer a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 26, 86, 0.15);
}

/* ============================================
   CONTACT INFO BOXES
   ============================================ */
.contact-info-box {
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 26, 86, 0.12);
}

/* ============================================
   IFRAME (Google Maps)
   ============================================ */
iframe {
    border: none;
    border-radius: 12px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 3px solid #0033ab;
    outline-offset: 3px;
}

/* Skip to content link (for screen readers) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #001a56;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header,
    footer,
    .fixed,
    #mobileMenu,
    button {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESPONSIVE PADDING & MARGINS
   ============================================ */
@media (max-width: 639px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
img,
iframe {
    content-visibility: auto;
}

/* Hardware acceleration - Exclude mobile menu toggle */
.service-card,
.fixed,
button:not([aria-label="Toggle Menu"]) {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */
