/* ===================================
   Phool Nagar Services - Modern CSS
   Color Scheme: Blue + Orange
   =================================== */

/* --- CSS Variables --- */
:root {
    /* Primary Colors - Blue (Trust & Professionalism) */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Secondary Colors - Orange (Warmth & Action) */
    --secondary-50: #fff7ed;
    --secondary-100: #ffedd5;
    --secondary-200: #fed7aa;
    --secondary-300: #fdba74;
    --secondary-400: #fb923c;
    --secondary-500: #f97316;
    --secondary-600: #ea580c;
    --secondary-700: #c2410c;
    --secondary-800: #9a3412;
    --secondary-900: #7c2d12;

    /* Accent Colors - Green (Success/WhatsApp) */
    --accent-50: #ecfdf5;
    --accent-100: #d1fae5;
    --accent-500: #10b981;
    --accent-600: #059669;
    --accent-700: #047857;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 150ms ease-in-out;
    --transition-slow: 300ms ease-in-out;

    /* Container */
    --container-max: 1280px;
    --container-padding: 2rem;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-700);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Header --- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-800);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- Navigation --- */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-slow);
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-600);
}

.nav-link.active::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--secondary-500);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--secondary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-600);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-700);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--accent-500);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: var(--accent-600);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    left: 0;
    transition: all var(--transition-slow);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-4) var(--container-padding);
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-nav-link:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    color: var(--white);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Section --- */
section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--gray-900);
    font-size: 2.25rem;
    margin-bottom: var(--space-3);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.service-image {
    height: 200px;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon-fallback {
    font-size: 4rem;
    opacity: 0.6;
}

.service-content {
    padding: var(--space-6);
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.service-content p {
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
}

.service-link {
    color: var(--primary-600);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.service-link:hover {
    gap: var(--space-2);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.feature-card h3 {
    margin-bottom: var(--space-2);
}

.feature-card p {
    font-size: 0.95rem;
}

/* --- Areas Section --- */
.areas-section {
    background: var(--primary-50);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}

.area-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    color: var(--gray-800);
    border: 2px solid var(--primary-200);
    transition: all var(--transition);
}

.area-card:hover {
    background: var(--primary-600);
    color: var(--white);
    border-color: var(--primary-600);
    transform: scale(1.05);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--secondary-600);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
}

.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--secondary-600);
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-400);
}

.social-links {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-800);
    color: var(--gray-300);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary-600);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-6);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-400);
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-500);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    text-decoration: none;
    transition: all var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-600);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-700);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.125rem; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { padding: var(--space-12) 0; }
    .hero h1 { font-size: 1.875rem; }
    .hero p { font-size: 1rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .logo img { height: 40px; }
    .logo-title { font-size: 1.25rem; }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }

    .hero { padding: var(--space-10) 0; }
    .hero h1 { font-size: 1.5rem; }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* --- Print Styles --- */
@media print {
    .header, .footer, .whatsapp-btn, .back-to-top {
        display: none;
    }
}