/* ===================================
   SolarySistem - CSS Styles
   Brand Colors: Orange & Blue
   =================================== */

/* CSS Variables */
:root {
    /* Brand Colors - SolarySistem Premium */
    --primary-orange: #FF6B35;
    --primary-orange-dark: #E85A2A;
    --primary-orange-light: #FF8C61;
    --primary-blue: #004E98;
    --primary-blue-dark: #003B73;
    --primary-blue-light: #3A6EA5;

    /* 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;

    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Modern 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);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF9F2F 100%);
    --gradient-blue: linear-gradient(135deg, #004E98 0%, #3A6EA5 100%);
    --gradient-hero: linear-gradient(135deg, #002B49 0%, #004E98 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.8) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Dark Mode Colors - Enhanced */
    --bg-dark: #0F172A;
    --surface-dark: #1E293B;
    --surface-dark-elevated: #334155;
    --text-dark: #F3F4F6;
    --text-dark-muted: #9CA3AF;
}

/* Dark Mode */
[data-theme="dark"] {
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(71, 85, 105, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] body {
    background-color: var(--bg-dark);
}

[data-theme="dark"] .header.scrolled {
    background: var(--surface-dark);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .project-info {
    background: var(--surface-dark);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: var(--surface-dark-elevated);
    border-color: var(--glass-border);
    color: var(--text-dark);
}

[data-theme="dark"] .social-link {
    background: var(--surface-dark);
}

[data-theme="dark"] .filter-btn {
    background: var(--surface-dark);
    color: var(--text-dark-muted);
}

[data-theme="dark"] .nav-menu {
    background: var(--surface-dark);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: all var(--transition-normal);
}

.header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
    height: 80px;
}

.header.scrolled .logo-img {
    filter: none;
    height: 60px;
}

.footer-logo-img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 5px 0;
}

.header.scrolled .nav-link {
    color: var(--gray-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-normal);
}

.header.scrolled .nav-toggle span {
    background: var(--gray-700);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
    /* Account for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 174, 239, 0.15) 0%, transparent 20%);
    animation: pulse-bg 10s infinite alternate;
}

@keyframes pulse-bg {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title-small {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-orange);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-icon {
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(30, 90, 168, 0.1) 100%);
    color: var(--primary-orange);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 107, 53, 0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 0 0 0 var(--radius-xl);
}

.service-card:hover::after {
    width: 100%;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.service-card.featured {
    border: 2px solid var(--primary-orange);
    transform: scale(1.02);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    letter-spacing: 0.5px;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 20px;
    margin-bottom: 28px;
    transition: all var(--transition-normal);
    color: var(--primary-blue);
}

.service-card:hover .service-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    transition: all var(--transition-normal);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 600;
}

.service-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: color var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-orange);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 32px;
}

.about-feature {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.feature-text span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.about-image-placeholder svg {
    width: 80%;
    height: 80%;
}

.about-image-placeholder span {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--gray-500);
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: var(--primary-orange);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.exp-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.exp-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* ===================================
   Why Us Section
   =================================== */
.why-us {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-orange);
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.why-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    padding: var(--section-padding) 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 400px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-image::after {
    opacity: 0.95;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
}

.project-placeholder svg {
    width: 40%;
    height: 40%;
    opacity: 0.5;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-details {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal) 0.1s;
}

.project-card:hover .project-details {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary-orange);
}

.cta .btn-primary:hover {
    background: var(--gray-100);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-social {
    margin-top: 40px;
}

.contact-social h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.social-link:hover svg {
    color: var(--white);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 10px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer ul a:hover {
    color: var(--primary-orange);
}

.footer-contact p {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--primary-orange);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--gray-700);
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-small {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .why-us-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-tag {
        display: block;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-features {
        max-width: 400px;
        margin: 32px auto 0;
    }

    .experience-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -30px;
        width: 120px;
        height: 120px;
    }

    .exp-number {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta h2 {
        font-size: 1.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .projects-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Slide Animations */
.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible,
.slide-right.visible,
.slide-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* Scale Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   3D Card Animations
   =================================== */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Enhanced Card Hover */
.service-card,
.project-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===================================
   Glassmorphism Effects
   =================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

/* ===================================
   Gradient Text
   =================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Micro-interactions
   =================================== */
/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-hover:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* Glow Effect */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-orange), 0 0 10px var(--primary-orange);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-orange), 0 0 30px var(--primary-orange);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===================================
   Loading States
   =================================== */
/* Skeleton Screen */
.skeleton {
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-image {
    aspect-ratio: 16/10;
    width: 100%;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.9);
}

/* ===================================
   Mobile Touch Feedback
   =================================== */
@media (hover: none) and (pointer: coarse) {

    .btn:active,
    .service-card:active,
    .project-card:active,
    .filter-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .nav-link:active {
        color: var(--primary-orange);
    }
}

/* Touch Highlight */
.touch-feedback {
    -webkit-tap-highlight-color: rgba(247, 148, 29, 0.2);
    touch-action: manipulation;
}

/* ===================================
   GPU Acceleration & Performance
   =================================== */
.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.service-card,
.project-card,
.btn,
.nav-link,
.filter-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .slide-left,
    .slide-right,
    .slide-up,
    .scale-in {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   Dark Mode Toggle Button
   =================================== */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    margin-left: 20px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .theme-toggle:hover {
    background: var(--gray-100);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    transition: all var(--transition-normal);
}

.header.scrolled .theme-toggle svg {
    color: var(--gray-700);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* ===================================
   Enhanced Notification Toast
   =================================== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success);
    color: var(--white);
}

.notification-error {
    background: var(--error);
    color: var(--white);
}

.notification-warning {
    background: var(--warning);
    color: var(--gray-900);
}

.notification-info {
    background: var(--primary-blue);
    color: var(--white);
}

/* ===================================
   Progress Bar
   =================================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* ===================================
   Scroll Progress Indicator
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ===================================
   Enhanced Focus States
   =================================== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(27, 117, 188, 0.15);
    background: var(--white);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.3);
}

.nav-link:focus-visible,
.filter-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.3);
    border-radius: var(--radius-sm);
}

/* ===================================
   Smooth Page Transitions
   =================================== */
.page-transition {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-transition.fade-out {
    opacity: 0;
}

/* ===================================
   Solar Panel Pattern Background
   =================================== */
.solar-pattern-bg {
    position: relative;
}

.solar-pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.12'%3E%3C!-- Solar panel grid 6x4 --%3E%3Crect x='2' y='2' width='18' height='18' rx='1'/%3E%3Crect x='22' y='2' width='18' height='18' rx='1'/%3E%3Crect x='42' y='2' width='18' height='18' rx='1'/%3E%3Crect x='62' y='2' width='18' height='18' rx='1'/%3E%3Crect x='82' y='2' width='18' height='18' rx='1'/%3E%3Crect x='102' y='2' width='16' height='18' rx='1'/%3E%3Crect x='2' y='22' width='18' height='18' rx='1'/%3E%3Crect x='22' y='22' width='18' height='18' rx='1'/%3E%3Crect x='42' y='22' width='18' height='18' rx='1'/%3E%3Crect x='62' y='22' width='18' height='18' rx='1'/%3E%3Crect x='82' y='22' width='18' height='18' rx='1'/%3E%3Crect x='102' y='22' width='16' height='18' rx='1'/%3E%3Crect x='2' y='42' width='18' height='18' rx='1'/%3E%3Crect x='22' y='42' width='18' height='18' rx='1'/%3E%3Crect x='42' y='42' width='18' height='18' rx='1'/%3E%3Crect x='62' y='42' width='18' height='18' rx='1'/%3E%3Crect x='82' y='42' width='18' height='18' rx='1'/%3E%3Crect x='102' y='42' width='16' height='18' rx='1'/%3E%3Crect x='2' y='62' width='18' height='16' rx='1'/%3E%3Crect x='22' y='62' width='18' height='16' rx='1'/%3E%3Crect x='42' y='62' width='18' height='16' rx='1'/%3E%3Crect x='62' y='62' width='18' height='16' rx='1'/%3E%3Crect x='82' y='62' width='18' height='16' rx='1'/%3E%3Crect x='102' y='62' width='16' height='16' rx='1'/%3E%3C!-- Inner cell lines --%3E%3Cline x1='11' y1='2' x2='11' y2='20'/%3E%3Cline x1='31' y1='2' x2='31' y2='20'/%3E%3Cline x1='51' y1='2' x2='51' y2='20'/%3E%3Cline x1='71' y1='2' x2='71' y2='20'/%3E%3Cline x1='91' y1='2' x2='91' y2='20'/%3E%3Cline x1='11' y1='22' x2='11' y2='40'/%3E%3Cline x1='31' y1='22' x2='31' y2='40'/%3E%3Cline x1='51' y1='22' x2='51' y2='40'/%3E%3Cline x1='71' y1='22' x2='71' y2='40'/%3E%3Cline x1='91' y1='22' x2='91' y2='40'/%3E%3Cline x1='11' y1='42' x2='11' y2='60'/%3E%3Cline x1='31' y1='42' x2='31' y2='60'/%3E%3Cline x1='51' y1='42' x2='51' y2='60'/%3E%3Cline x1='71' y1='42' x2='71' y2='60'/%3E%3Cline x1='91' y1='42' x2='91' y2='60'/%3E%3Cline x1='11' y1='62' x2='11' y2='78'/%3E%3Cline x1='31' y1='62' x2='31' y2='78'/%3E%3Cline x1='51' y1='62' x2='51' y2='78'/%3E%3Cline x1='71' y1='62' x2='71' y2='78'/%3E%3Cline x1='91' y1='62' x2='91' y2='78'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 80px;
    pointer-events: none;
    z-index: 0;
}

.solar-pattern-bg>* {
    position: relative;
    z-index: 1;
}

/* Dark mode pattern variant */
[data-theme="dark"] .solar-pattern-bg::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='0.5' opacity='0.08'%3E%3C!-- Solar panel grid 6x4 --%3E%3Crect x='2' y='2' width='18' height='18' rx='1'/%3E%3Crect x='22' y='2' width='18' height='18' rx='1'/%3E%3Crect x='42' y='2' width='18' height='18' rx='1'/%3E%3Crect x='62' y='2' width='18' height='18' rx='1'/%3E%3Crect x='82' y='2' width='18' height='18' rx='1'/%3E%3Crect x='102' y='2' width='16' height='18' rx='1'/%3E%3Crect x='2' y='22' width='18' height='18' rx='1'/%3E%3Crect x='22' y='22' width='18' height='18' rx='1'/%3E%3Crect x='42' y='22' width='18' height='18' rx='1'/%3E%3Crect x='62' y='22' width='18' height='18' rx='1'/%3E%3Crect x='82' y='22' width='18' height='18' rx='1'/%3E%3Crect x='102' y='22' width='16' height='18' rx='1'/%3E%3Crect x='2' y='42' width='18' height='18' rx='1'/%3E%3Crect x='22' y='42' width='18' height='18' rx='1'/%3E%3Crect x='42' y='42' width='18' height='18' rx='1'/%3E%3Crect x='62' y='42' width='18' height='18' rx='1'/%3E%3Crect x='82' y='42' width='18' height='18' rx='1'/%3E%3Crect x='102' y='42' width='16' height='18' rx='1'/%3E%3Crect x='2' y='62' width='18' height='16' rx='1'/%3E%3Crect x='22' y='62' width='18' height='16' rx='1'/%3E%3Crect x='42' y='62' width='18' height='16' rx='1'/%3E%3Crect x='62' y='62' width='18' height='16' rx='1'/%3E%3Crect x='82' y='62' width='18' height='16' rx='1'/%3E%3Crect x='102' y='62' width='16' height='16' rx='1'/%3E%3C!-- Inner cell lines --%3E%3Cline x1='11' y1='2' x2='11' y2='20'/%3E%3Cline x1='31' y1='2' x2='31' y2='20'/%3E%3Cline x1='51' y1='2' x2='51' y2='20'/%3E%3Cline x1='71' y1='2' x2='71' y2='20'/%3E%3Cline x1='91' y1='2' x2='91' y2='20'/%3E%3Cline x1='11' y1='22' x2='11' y2='40'/%3E%3Cline x1='31' y1='22' x2='31' y2='40'/%3E%3Cline x1='51' y1='22' x2='51' y2='40'/%3E%3Cline x1='71' y1='22' x2='71' y2='40'/%3E%3Cline x1='91' y1='22' x2='91' y2='40'/%3E%3Cline x1='11' y1='42' x2='11' y2='60'/%3E%3Cline x1='31' y1='42' x2='31' y2='60'/%3E%3Cline x1='51' y1='42' x2='51' y2='60'/%3E%3Cline x1='71' y1='42' x2='71' y2='60'/%3E%3Cline x1='91' y1='42' x2='91' y2='60'/%3E%3Cline x1='11' y1='62' x2='11' y2='78'/%3E%3Cline x1='31' y1='62' x2='31' y2='78'/%3E%3Cline x1='51' y1='62' x2='51' y2='78'/%3E%3Cline x1='71' y1='62' x2='71' y2='78'/%3E%3Cline x1='91' y1='62' x2='91' y2='78'/%3E%3C/g%3E%3C/svg%3E");
}