/* ====================================
   NITS TECH SYSTEMS - Main Stylesheet
   Professional IT Company Design
   ==================================== */

/* CSS Variables for Consistent Theming */
:root {
    /* Colors */
    --navy: #1e3a8a;
    --navy-dark: #1e2563;
    --navy-light: #3b82f6;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-medium: #e2e8f0;
    --gray-dark: #64748b;
    --accent-blue: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--navy);
    font-weight: 400;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

a {
    color: var(--navy-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--navy);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-light), var(--accent-blue));
    border-radius: 2px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    min-height: 80px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    border-radius: 0; /* Makes it rectangular */
    object-fit: contain; /* Keeps the logo's proportions */
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gray-dark);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--navy);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--gray-light);
    color: var(--navy-dark);
    text-decoration: none;
}

.nav-item-cta .nav-link {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

.nav-item-cta .nav-link:hover {
    background: var(--navy-dark);
    color: var(--white);
}

/* Mega Menu */
.nav-item-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -200px;
    width: 600px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 100;
    border: 1px solid var(--gray-medium);
}

.nav-item-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
}

.mega-menu-section h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.mega-menu-section p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.mega-menu-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    text-decoration: none;
}

.service-item:hover {
    background: var(--gray-light);
    text-decoration: none;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    color: var(--navy);
    font-size: 1rem;
}

.service-info h4 {
    color: var(--navy);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.service-info p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.85rem;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.mobile-toggle:hover {
    background: var(--gray-light);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transition: var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.nav-mobile.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
}

.mobile-nav-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-header .logo img {
    border-radius: 0;
    height: 50px;       /* fixed height */
    width: auto;        /* auto width keeps aspect ratio */
    object-fit: contain;
}


.mobile-nav-header .logo span {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.1rem;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.mobile-close:hover {
    background: var(--gray-light);
    color: var(--navy);
}

.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--gray-light);
    color: var(--navy-dark);
    text-decoration: none;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
}

.mobile-nav-dropdown .mobile-nav-toggle:hover {
    background: var(--gray-light);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
    background: var(--gray-light);
}

.mobile-nav-dropdown.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2.5rem;
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.mobile-submenu-link:hover {
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
}

.mobile-submenu-cta {
    font-weight: 600;
    color: var(--navy-light) !important;
}

.mobile-nav-cta {
    padding: 1rem 1.5rem;
}

.mobile-nav-cta .mobile-nav-link {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--border-radius);
    justify-content: center;
    font-weight: 600;
}

.mobile-nav-footer {
    padding: 2rem 1.5rem 1rem;
    border-top: 1px solid var(--gray-medium);
    margin-top: auto;
}

.mobile-contact p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.mobile-phone,
.mobile-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    color: var(--navy);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-social a:hover {
    background: var(--navy);
    color: var(--white);
}

/* Main Content Spacing */
main {
    margin-top: 80px;
}

/* ===================== HERO SECTION ===================== */
.hero {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

/* Particle Background */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero h1 {
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--navy); /* blinking cursor */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: typing 3s steps(40) 0.5s forwards, blink 0.7s step-end infinite;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray-dark);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn:nth-child(1) {
    animation: slideInLeft 0.8s ease 1s both;
}

.hero-buttons .btn:nth-child(2) {
    animation: slideInRight 0.8s ease 1.2s both;
}

/* ===================== TYPING ANIMATION ===================== */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===================== FLOAT PARTICLES ===================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ===================== FADE IN HERO CONTENT ===================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    border: 2px solid var(--navy);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-light), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
 border-radius: 0; /* Makes it rectangular */
    object-fit: contain; /* Keeps the logo's proportions */
}

.footer-logo h3 {
    margin: 0;
    font-size: 1.25rem;
}

.footer-logo p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--white);
    color: var(--navy);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Enhanced Animation Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bearier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease forwards;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-slide-down {
    animation: slideDown 0.5s ease forwards;
}

/* Staggered Animation Delays */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Service Card Animations */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: var(--transition-slow);
}

.service-card:hover::after {
    left: 100%;
}

.service-icon {
    transition: var(--transition-normal);
    transform-origin: center;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    animation: bounce 0.6s ease;
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--navy-light), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--transition-normal) ease-out;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn:active {
    transform: scale(0.98);
}

/* Enhanced Navigation Animations */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy-light);
    transition: width var(--transition-normal) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Enhanced Mega Menu Animation */
.mega-menu {
    transform: translateY(-20px) scale(0.95);
    transition: all var(--transition-normal) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-item-mega:hover .mega-menu {
    transform: translateY(0) scale(1);
}

.service-item {
    transition: all var(--transition-fast) ease;
}

.service-item:hover {
    transform: translateX(10px);
}

.service-item:hover .service-icon {
    animation: wiggle 0.5s ease;
}

/* Enhanced Mobile Navigation Animation */
.nav-mobile {
    transition: all var(--transition-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-link {
    position: relative;
    transform: translateX(20px);
    opacity: 0;
    transition: all var(--transition-normal) ease;
}

.nav-mobile.active .mobile-nav-link {
    transform: translateX(0);
    opacity: 1;
}

.nav-mobile.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.nav-mobile.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.nav-mobile.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.nav-mobile.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.nav-mobile.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }

/* Enhanced Footer Animations */
.footer-section {
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.social-links a {
    transition: all var(--transition-normal) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    animation: pulse 0.5s ease;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hover Effects for Images */
.about-image img {
    transition: all var(--transition-slow) ease;
    filter: grayscale(20%);
}

.about-image:hover img {
    transform: scale(1.05) rotate(2deg);
    filter: grayscale(0%);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Section Title Animation */
.section-title {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.section-title::after {
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.8s ease 0.5s;
}

.section-title.in-view::after {
    transform: translateX(-50%) scaleX(1);
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
    animation: glow 0.5s ease;
}

/* Microinteractions */
.service-card h3 {
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--navy-light);
    transform: translateX(5px);
}

.service-card .btn {
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-normal) ease;
}

.service-card:hover .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 8rem 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
        min-height: 70px;
    }
    
    main {
        margin-top: 70px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 2;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-mobile,
    .nav-overlay,
    .mobile-toggle,
    footer {
        display: none !important;
    }
    
    main {
        margin-top: 0 !important;
    }
    
    .service-card,
    .about-content {
        box-shadow: none !important;
        border: 1px solid var(--gray-medium) !important;
    }
    
    .hero {
        background: var(--white) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --navy: #000000;
        --navy-dark: #000000;
        --gray-dark: #333333;
        --gray-medium: #666666;
    }
    
    .service-card {
        border: 2px solid var(--navy);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
/* Form Inputs & Textareas */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

/* Label Styles */
.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--navy);
}

/* Textarea Specific */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.contact-form .btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
/* Grid layout for contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.contact-info i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
}
.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-medium);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.contact-form .form-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 5px rgba(59,130,246,0.4);
    outline: none;
}
.contact-form .btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
}
@media(max-width: 768px){
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Portfolio grid layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.portfolio-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: var(--gray-light);
    color: var(--gray-dark);
    font-weight: bold;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.portfolio-content p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.portfolio-content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* UNIVERSAL ICON STYLES */
i, /* standard font awesome or any icon tag */
.icon, /* generic icon class */
.service-icon, /* service card icons */
.about-icon, /* if used in about section */
.social-links a i, /* social icons */
.footer-icon, /* any footer-specific icon */
.btn i /* icons inside buttons */
{
    display: inline-block;
    font-style: normal; /* ensures consistent style */
    color: var(--navy);
    transition: all 0.3s ease;
    vertical-align: middle;
    line-height: 1;
}
.fa-solid, .fas
Specificity: (0,1,0)
 {
    font-weight: 900;
}

.fa-3x {
    font-size: 1em;
}
/* Hover effects for all icons */
i:hover,
.icon:hover,
.service-icon:hover,
.about-icon:hover,
.social-links a i:hover,
.footer-icon:hover,
.btn i:hover
{
    color: var(--accent-blue);
    transform: scale(1.2) rotate(0deg);
}

/* Scaling & subtle animation for hover */
i.animate-hover,
.icon.animate-hover,
.service-icon.animate-hover,
.about-icon.animate-hover,
.social-links a i.animate-hover,
.footer-icon.animate-hover,
.btn i.animate-hover {
    transition: transform 0.3s ease, color 0.3s ease;
}

i.animate-hover:hover,
.icon.animate-hover:hover,
.service-icon.animate-hover:hover,
.about-icon.animate-hover:hover,
.social-links a i.animate-hover:hover,
.footer-icon.animate-hover:hover,
.btn i.animate-hover:hover {
    transform: scale(1.3) rotate(5deg);
}

/* Optional: Adjust size for specific sections */
.service-icon { font-size: 3rem; }
.about-icon { font-size: 2rem; }
.social-links a i { font-size: 1.2rem; }
.btn i { font-size: 1rem; }

/* Accessibility: focus states */
i:focus,
.icon:focus,
.service-icon:focus,
.about-icon:focus,
.social-links a i:focus,
.footer-icon:focus,
.btn i:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* General Form Container */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: var(--shadow-xl);
}

.contact-form .mb-2 {
    margin-bottom: 1.5rem;
}
