/* ============================================
   MAISK DEVELOPMENTS - MAIN STYLESHEET
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #E8614D;
    --dark-color: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #888;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #E8614D 0%, #d45540 100%);
    --overlay-dark: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.65) 100%);

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);

    /* Font Sizes */
    --font-xs: 0.875rem;
    --font-sm: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.5rem;
    --font-xl: 2rem;
    --font-xxl: 3rem;
}

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

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

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

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

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

.section-title {
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-md);
    color: var(--text-medium);
    font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: var(--font-sm);
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--white);
}

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

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

.btn-lg {
    padding: 16px 40px;
    font-size: var(--font-md);
}

.btn-small {
    padding: 8px 20px;
    font-size: var(--font-sm);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.logo-md {
    font-size: 28px;
    color: var(--primary-color);
    letter-spacing: -1.5px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-maisk {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.logo-developments {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

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

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

.nav-cta {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 6px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header Phone */
.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-sm);
}

.header-phone i {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: var(--font-md);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-trust {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-sm);
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.3em;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d45540 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    font-size: var(--font-sm);
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== PORTFOLIO SECTION ===== */
.portfolio-preview {
    padding: var(--section-padding) 0;
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

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

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

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

.portfolio-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.portfolio-info h3 {
    font-size: var(--font-lg);
    margin-bottom: 10px;
}

.portfolio-info p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-medium);
    font-weight: 500;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

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

.feature-item:hover .feature-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--light-bg);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #FFB800;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: var(--font-sm);
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: var(--font-md);
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: var(--font-xs);
    color: var(--text-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: var(--font-xxl);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: var(--font-md);
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-medium);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

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

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

.contact-text h4 {
    font-size: var(--font-sm);
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-text a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-text p {
    font-size: var(--font-sm);
    color: var(--text-medium);
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-bg);
    border-radius: 6px;
    font-size: var(--font-xs);
    font-weight: 500;
}

.badge i {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-wrapper h3 {
    font-size: var(--font-lg);
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: var(--font-sm);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: var(--font-xs);
    color: var(--text-light);
}

.form-note {
    font-size: var(--font-xs);
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer .logo-maisk,
.footer .logo-developments {
    color: var(--white);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: var(--font-sm);
    line-height: 1.7;
}

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

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: var(--font-sm);
    transition: var(--transition-fast);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: var(--font-sm);
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: var(--font-sm);
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --font-xxl: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --font-xxl: 2rem;
        --font-xl: 1.5rem;
        --font-lg: 1.25rem;
    }

    /* Header Mobile */
    .header-phone {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        transform: translateX(-100%);
        transition: transform var(--transition-fast);
        box-shadow: var(--shadow-md);
        gap: 20px;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: var(--font-md);
    }

    /* Hero Mobile */
    .hero {
        background-attachment: scroll;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-trust {
        flex-direction: column;
        gap: 20px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-section {
        grid-template-columns: 1fr 1fr;
        padding: 40px 20px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-xxl: 1.75rem;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: var(--font-sm);
    }

    .stats-section {
        grid-template-columns: 1fr;
    }
}
