/* Color variables and typography tokens */
:root {
    --bg-base: #060913;          /* Deep Slate Blue (Ultra Dark) */
    --bg-surface: #0c101d;       /* High-tech Dark Blue Surface */
    --bg-surface-hover: #161c2e;  /* Dark Blue Hover Surface */
    
    --text-primary: #f8fafc;    /* Slate 50 */
    --text-secondary: #94a3b8;  /* Slate 400 */
    --text-muted: #4b5563;     /* Slate 600 */
    
    --color-electric: #f59e0b; /* Bright Amber/Gold */
    --color-electric-hover: #d97706;
    --color-tech: #06b6d4;     /* Premium Cyan/Tech Blue */
    --color-tech-hover: #0891b2;
    
    --font-heading: 'Mona Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Mona Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Chivo Mono', monospace;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-bright: rgba(255, 255, 255, 0.12);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Parallax Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.016) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
    transform: translateY(calc(var(--scroll-y, 0px) * -0.12)); /* Smooth Parallax movement */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-electric), var(--color-tech));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-electric);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-electric-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(226, 186, 22, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--color-tech);
    color: var(--color-tech);
    transform: translateY(-2px);
}

/* Navigation Menu */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-electric), var(--color-tech));
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    background-color: var(--bg-base);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(6, 9, 19, 0.72) 0%, rgba(6, 9, 19, 0.96) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    font-family: var(--font-heading);
    color: var(--color-electric);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    display: inline-block;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Slider Section (Company Info) */
.slider-section {
    background-color: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.company-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
}

.company-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--transition-smooth);
    border-radius: 6px;
}

.tab-btn.active {
    color: var(--text-primary);
    background-color: var(--bg-base);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.tab-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Stats Section */
.stats-section {
    background-color: #04060c;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.stat-card:hover {
    border-color: var(--border-glass-bright);
    transform: translateY(-4px);
}

.stat-num-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 15px;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(odd) .stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-tech);
    margin-left: 2px;
}

.stat-card:nth-child(odd) .stat-suffix {
    color: var(--color-electric);
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(4px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Spotlight Cursor Glow Effect */
.service-card, .norm-card, .stat-card {
    position: relative;
}

.service-card::after, .norm-card::after, .stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), var(--spotlight-color, rgba(6, 182, 212, 0.08)) 0%, transparent 80%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after, .norm-card:hover::after, .stat-card:hover::after {
    opacity: 1;
}

/* Spotlight Colors Setup */
.service-electric, .service-civil, .norm-card:nth-child(odd) {
    --spotlight-color: rgba(245, 158, 11, 0.12); /* Gold glow */
}

.service-tech, .norm-card:nth-child(even) {
    --spotlight-color: rgba(6, 182, 212, 0.12); /* Cyan glow */
}

.service-consulting {
    --spotlight-color: rgba(255, 255, 255, 0.08); /* Silver glow */
}

.stat-card {
    --spotlight-color: rgba(6, 182, 212, 0.08); /* default cyan for stats */
}

.stat-card:nth-child(odd) {
    --spotlight-color: rgba(245, 158, 11, 0.08); /* gold for odd stats */
}

/* Card Background Video loop */
.card-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.22) blur(1px); /* Low brightness for supreme text contrast */
}

.service-card:hover .card-video-wrapper {
    opacity: 1;
}

/* Hide videos on mobile viewports for performance & data saving */
@media (max-width: 768px) {
    .card-video-wrapper {
        display: none !important;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
    z-index: 3;
}

.service-electric::before, .service-civil::before {
    background: var(--color-electric);
    opacity: 0.3;
}

.service-tech::before {
    background: var(--color-tech);
    opacity: 0.3;
}

.service-consulting::before {
    background: var(--text-primary);
    opacity: 0.2;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-electric:hover {
    border-color: var(--color-electric);
    box-shadow: 0 20px 40px -20px rgba(245, 158, 11, 0.25);
}

.service-electric:hover::before, .service-civil:hover::before {
    opacity: 1;
}

.service-tech:hover {
    border-color: var(--color-tech);
    box-shadow: 0 20px 40px -20px rgba(6, 182, 212, 0.25);
}

.service-tech:hover::before {
    opacity: 1;
}

.service-civil:hover {
    border-color: var(--color-electric);
    box-shadow: 0 20px 40px -20px rgba(245, 158, 11, 0.25);
}

.service-consulting:hover {
    border-color: var(--text-primary);
    box-shadow: 0 20px 40px -20px rgba(255, 255, 255, 0.15);
}

.service-consulting:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-electric);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.service-tech .service-icon {
    color: var(--color-tech);
}

.service-consulting .service-icon {
    color: var(--text-primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.service-list {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-tech);
    font-weight: 700;
}

.service-electric .service-list li::before, .service-civil .service-list li::before {
    color: var(--color-electric);
}

.service-consulting .service-list li::before {
    color: var(--text-primary);
}

/* Bento Grid Grid Layout for Services on Desktop */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .service-card:nth-child(1) {
        grid-column: span 2;
    }
    .service-card:nth-child(2) {
        grid-column: span 1;
    }
    .service-card:nth-child(3) {
        grid-column: span 1;
    }
    .service-card:nth-child(4) {
        grid-column: span 2;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-premium);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 20%, rgba(15, 23, 42, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item-title {
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.portfolio-item-cat {
    font-size: 0.8rem;
    color: var(--color-tech);
    font-weight: 600;
    text-transform: uppercase;
}

/* Norms & Certifications Section */
.norms-section {
    background-color: var(--bg-surface);
}

.norms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.norm-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 35px 28px;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-premium);
}

.norm-card:hover {
    border-color: var(--color-tech);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(6, 182, 212, 0.25);
}

.norm-card:nth-child(2n+1):hover {
    border-color: var(--color-electric);
    box-shadow: 0 20px 40px -20px rgba(245, 158, 11, 0.25);
}

.norm-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--color-tech);
    color: var(--color-tech);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
    align-self: flex-start;
}

.norm-card:nth-child(2n+1) .norm-badge {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--color-electric);
    color: var(--color-electric);
}

.norm-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.norm-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Bento grid layout on desktop */
@media (min-width: 1024px) {
    .norms-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .norm-card:nth-child(1) {
        grid-column: span 1;
        grid-row: span 2;
    }
    .norm-card:nth-child(2) {
        grid-column: span 2;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
}

.contact-card-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-detail-icon {
    font-size: 1.5rem;
    color: var(--color-tech);
}

.contact-detail-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-detail-text p, .contact-detail-text a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-detail-text a:hover {
    color: var(--color-tech);
}

.contact-form-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background-color: var(--bg-base);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-tech);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: none;
}

.form-alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.form-alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Footer */
.footer {
    background-color: #0b0f19;
    padding: 30px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-height: 70vh;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: var(--shadow-premium);
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .norms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .norm-card:nth-child(1), .norm-card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-desc {
        font-size: 1.15rem;
    }
    .company-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-base);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-glass);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .norms-grid {
        grid-template-columns: 1fr;
    }
    .norm-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .company-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .tab-btn {
        text-align: center;
    }
}
