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

:root {
    --primary: #2C3E50;
    --secondary: #E74C3C;
    --accent: #3498DB;
    --dark: #1A252F;
    --light: #ECF0F1;
    --gray: #7F8C8D;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

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

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-description {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #C0392B;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-block {
    width: 100%;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--light);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LOGO STYLES ===== */
/* ===== LOADING SCREEN LOGO ===== */
.loading-screen .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.loading-screen .logo-text h2 {
    color: white;
    font-size: 24px;
    margin: 0;
    line-height: 1;
    text-align: center;
    animation: fadeIn 2s ease;
}

.loading-screen .logo-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 2px;
    text-align: center;
    margin: 5px 0 0;
    text-transform: uppercase;
    animation: fadeIn 2.5s ease;
}

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

/* ===== CONTENT WRAPPER ===== */
.content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .content {
    opacity: 1;
    transform: translateY(0);
}

body.loading {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

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

/* LOGO STYLES */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 1px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

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

.cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #C0392B;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 120px 0 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto 40px;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

/* Stats Section */
.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    margin-top: 40px;
    width: 100%;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.feature i {
    color: var(--secondary);
    font-size: 20px;
    margin-top: 5px;
    flex-shrink: 0;
}

.feature h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.director-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.director-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--light-gray);
    position: relative;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.director-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden by default, shown when loaded */
}

.image-placeholder {
    color: white;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.image-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    display: block;
}

.image-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.director-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.position {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.experience {
    background: var(--light-gray);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 32px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.service-link {
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.service-link:hover {
    gap: 15px;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-details {
    color: white;
    text-align: center;
}

.project-details h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.project-details p {
    font-size: 14px;
    opacity: 0.9;
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
    min-height: 60px;
}

.project-info p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-tag {
    display: inline-block;
    background: var(--light-gray);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

.view-all-projects {
    text-align: center;
    margin-top: 40px;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--gray);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.social-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.social-btn.whatsapp:hover {
    background: #1DA851;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--dark);
    background: var(--light-gray);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.focused input,
.form-group.focused select,
.form-group.focused textarea {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-description {
    color: var(--gray);
    margin-top: 20px;
    line-height: 1.6;
}

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

.footer-col ul li a {
    color: var(--gray);
    transition: var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray);
}

.footer-contact i {
    color: var(--secondary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #C0392B;
    transform: translateY(-3px);
}

/* ===== FORM MESSAGES ===== */
.field-error {
    color: #E74C3C !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    text-align: left !important;
}

.form-message {
    padding: 15px !important;
    margin-top: 20px !important;
    border-radius: var(--border-radius) !important;
    text-align: center !important;
    font-weight: 600 !important;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #2ECC71 !important;
    color: white !important;
}

.form-message.error {
    background-color: #E74C3C !important;
    color: white !important;
}

/* ===== ANIMATIONS ===== */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        position: relative;
        background: rgba(44, 62, 80, 0.9);
        margin-top: 40px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .hero-stats {
        padding: 20px 0;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .director-image {
        width: 150px;
        height: 150px;
    }
    
    .image-placeholder i {
        font-size: 40px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 9px;
    }
}