/* Aagmik Green Energy Custom Styles */
:root {
    --primary-green: #9CC44E;
    --primary-green-dark: #8AB543;
    --accent-green: #2ECC71;
    --dark-green: #044832;
    --light-green: #E2EFF2;
    --text-primary: #212529;
    --text-secondary: #6B7280;
    --background-light: #FFFFFF;
    --background-gray: #F8FAFC;
    --border-color: #E2EFF2;
    --shadow-color: rgba(156, 196, 78, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--text-primary);
    border-radius: 9999px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px var(--shadow-color),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px var(--shadow-color),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-green) 0%, #1991D4 100%);
    color: white;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow:
        0 4px 15px rgba(29, 161, 242, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(29, 161, 242, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Custom Form Styles */
.form-input {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(156, 196, 78, 0.1);
}

/* Custom Typography */
body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Custom Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-light {
    background-color: var(--background-gray);
}

/* Custom Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Grid Styles */
.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(156, 196, 78, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 20px 50px rgba(156, 196, 78, 0.2);
    border-color: var(--primary-green);
}

.card:hover::before {
    opacity: 1;
}

/* Custom Image Styles */
.rounded-image {
    border-radius: 15px;
    overflow: hidden;
}

/* Custom Background Patterns */
.natural-pattern {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(156, 196, 78, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(29, 161, 242, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(46, 204, 113, 0.08) 0%, transparent 40%);
    position: relative;
}

.natural-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

/* Subtle grain texture for premium backgrounds */
.grain-texture {
    position: relative;
}

.grain-texture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 1;
}

/* Custom Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 40px 0;
    }
}

/* Custom Utility Classes */
.text-green-primary {
    color: var(--primary-green);
}

.text-green-secondary {
    color: var(--secondary-green);
}

.bg-green-light {
    background-color: var(--light-green);
}

.border-green {
    border-color: var(--primary-green);
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
}

.mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8AB543;
}

/* Selection Color */
::selection {
    background: var(--primary-green);
    color: white;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s ease;
    border-radius: 4px;
}

.skip-nav:focus {
    top: 6px;
}

/* Loading Animation */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

/* Spinner Animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* Form Error Styles */
.form-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Google Forms Container - Matches your themed card */
.google-forms-wrapper {
    background: white !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    padding: 40px !important;
    overflow: hidden;
    position: relative;
}

/* Optional: Green accent border on top */
.google-forms-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #16a34a, #15803d);
    border-radius: 24px 24px 0 0;
}

/* Ensure iframe fills container properly */
.google-forms-wrapper iframe {
    width: 100% !important;
    min-height: 550px !important;
    border: none !important;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .google-forms-wrapper {
        padding: 20px !important;
    }

    .google-forms-wrapper iframe {
        min-height: 1400px !important;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Container max widths */
.container {
    max-width: 1200px;
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    nav {
        display: none;
    }

    footer {
        page-break-after: always;
    }
}