/* Resitoglu Enerji - Premium Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #2ecc71; /* Vivid Emerald */
    --primary-glow: rgba(46, 204, 113, 0.4);
    --secondary: #3498db; /* Tech Blue */
    --accent: #f1c40f; /* Solar Gold */
    
    /* Backgrounds */
    --bg-dark: #0a0a0a;
    --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #121212;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--bg-dark); /* Fallback */
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f2027;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Glass Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--primary-glow);
    border: none;
    cursor: pointer;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(15, 32, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Invert logo for dark theme if needed, or use filter */
    /* filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); */
}

.nav-menu {
    display: flex;
    gap: 40px;
    background: rgba(255,255,255,0.03);
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Active Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,32,39,0.5), #0f2027);
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* Slight Zoom for Parallax */
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-text {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section (New) */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 100%; height: 100%;
    border: 2px solid var(--primary);
    border-radius: 30px;
    opacity: 0.3;
    z-index: -1;
}

.about-img img {
    border-radius: 30px;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-list {
    margin-top: 40px;
}

.about-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.about-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-desc {
    color: var(--text-muted);
}

/* Contact */
.contact-section {
    background: url('../img/hero.png') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax feel */
    position: relative;
    padding: 120px 0;
}

.contact-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(5px);
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(20, 20, 20, 0.8);
}

.form-group {
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 30px;
    background: #0f2027;
}

.copyright {
    margin-top: 60px;
    color: rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Animations (Generic) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        text-align: center;
        transition: 0.4s;
        border-radius: 0;
        padding: 0;
        margin: 0;
        border: none;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    /* Hide the "Teklif Al" button in mobile menu for now, or style it to fit inside if moved */
    .nav .btn-primary {
        display: none; 
    }
    
    /* Add logic to show "Teklif Al" inside menu via JS or just hide it on header and show in menu if HTML structure supported it. 
       For this structure, the button is outside ul. Let's keep it simple or hide it. 
       Better approach: Hide the header button on mobile, maybe add one inside menu or just rely on contact section.
    */
}
