/* 
 * Güntek Elektrik - Modern 2024 Design
 * Animated, Glassmorphism, Vibrant
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* Corporate Palette (Red & Black) - UPDATED */
    --primary-gradient: linear-gradient(135deg, #cc0000 0%, #ff3333 100%);
    --secondary-gradient: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    --dark-gradient: linear-gradient(135deg, #000000 0%, #222222 100%);

    --primary-color: #cc0000;
    --secondary-color: #1a1a1a;
    --accent-color: #ff3333;

    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #dfe6e9;
    --white: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(204, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

    --font-main: 'Outfit', sans-serif;

    --header-height: 90px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    background: -webkit-linear-gradient(#333, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-main);
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    -webkit-text-fill-color: var(--text-main);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Page-specific backgrounds */
.bg-primary {
    background: var(--primary-gradient);
}

.bg-light {
    background: #f8f9fc;
}

/* Ensure content is visible below fixed header - only for first section on non-hero pages */
body > section:first-of-type:not(.hero) {
    margin-top: var(--header-height);
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(204, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(204, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Glass Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    /* Adjust based on logo aspect ratio */
}

.logo img {
    max-height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
}

/* Modern Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(to right, #ffffff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 50px;
}

/* Floating Shapes Animation */
.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.15;
    filter: blur(80px);
    z-index: 1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    left: -50px;
    background: var(--secondary-gradient);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 100px);
    }
}

/* Glass Cards */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: block;
    /* Make sure <a> acts as block */
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(204, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.card:hover .card-icon,
.brand-card:hover .brand-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: rotateY(180deg);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Brand Cards Specific */
.brand-logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: #999;
    transition: color 0.3s;
}

.card:hover .brand-logo-text {
    color: var(--primary-color);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-main);
}

label {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 2rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-float i {
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
}

/* Footer */
footer {
    background: #000000;
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-col a {
    color: #94a3b8;
    display: block;
    margin-bottom: 15px;
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-main);
    }

    /* Mobile menu logic in JS */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        text-align: center;
    }
}