/* ================================
   CTC Construct - Main Stylesheet
   Created by ZLK Studio
   https://zlkstudio.co.uk
   ================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #00C2E8;
    --secondary-color: #1a1a1a;
    --text-color: #666;
    --heading-color: #1a1a1a;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }

/* ===== PRELOADER (SIMPLU) ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-logo {
    max-width: 200px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.preloader-text {
    font-size: 18px;
    color: var(--text-color);
    letter-spacing: 2px;
}

/* ===== HEADER TOP ===== */
.header-top {
    background: var(--secondary-color);
    padding: 12px 0;
    color: var(--white);
    font-size: 14px;
}

.header-top a {
    color: var(--white);
}

.header-top a:hover {
    color: var(--primary-color);
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info-left span {
    margin-right: 25px;
}

.header-info-left i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ===== MAIN HEADER ===== */
.main-header {
    position: relative;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-lower {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
}

/* ===== NAVIGATION ===== */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin: 0 20px;
}

.main-menu > li > a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    color: var(--heading-color);
    position: relative;
}

.main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-menu > li:hover > a::after,
.main-menu > li.current > a::after {
    width: 100%;
}

/* Dropdown Menu */
.main-menu li {
    position: relative;
}

.main-menu li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 15px 0;
}

.main-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu li .dropdown li {
    margin: 0;
}

.main-menu li .dropdown li a {
    display: block;
    padding: 10px 25px;
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
}

.main-menu li .dropdown li:last-child a {
    border-bottom: none;
}

.main-menu li .dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--heading-color);
}

/* ===== BUTTONS ===== */
.theme-btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.theme-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.theme-btn-dark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.theme-btn-dark:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content h1 {
    font-size: 60px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 30px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 30px;
    color: var(--white);
    transform: translateY(50px);
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.project-overlay h3 {
    color: var(--white);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 22px;
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-info li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: var(--primary-color);
}

/* ===== BREADCRUMB ===== */
.page-title-section {
    padding: 150px 0 80px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.page-title-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-title-content h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    color: var(--white);
    margin: 0 10px;
}

.breadcrumb li a {
    color: var(--white);
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Jost', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu > li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 32px; }
    h3 { font-size: 28px; }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-slider,
    .hero-slide {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}
