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

:root {
    --brand: #2c3e50;
    --brand-dark: #1a252f;
    --sidebar-w: 280px;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   SCROLL-REVEAL ANIMATIONS
   ================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ================================
   SIDEBAR NAVIGATION
   ================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 40px 0;
}

.logo-container {
    text-align: center;
    padding: 0 30px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    object-fit: contain;
}

.nav-menu {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    font-weight: 400;
    padding: 13px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(102, 126, 234, 0.06);
    color: var(--brand);
    transform: translateX(5px);
    border-left-color: var(--brand);
}

.nav-menu a.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--brand);
    font-weight: 600;
    border-left-color: var(--brand);
    transform: translateX(5px);
}

.social-links {
    padding: 0 30px 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #333;
    color: #fff;
    transform: translateY(-3px);
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* ================================
   MOBILE MENU TOGGLE
   ================================ */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   WHATSAPP FLOAT 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;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* ================================
   SCROLL TO TOP
   ================================ */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background: #000;
    transform: translateY(-3px);
}

.scroll-top.active {
    display: flex;
}

.scroll-top::before {
    content: "↑";
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f5f5f5;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-section {
    padding: 100px 60px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* ================================
   SERVICES SECTION
   ================================ */
.services-section {
    padding: 100px 60px;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
}

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

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* ================================
   PORTFOLIO PREVIEW
   ================================ */
.portfolio-preview {
    padding: 100px 60px;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.testimonials-section .section-title h2,
.testimonials-section .section-title p {
    color: #fff;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    padding: 100px 60px;
    background: #222;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.cta-section p {
    color: #ccc;
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-section {
        grid-template-columns: 1fr;
        padding: 60px 30px;
        gap: 40px;
    }

    .about-image {
        height: 400px;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .services-section,
    .portfolio-preview,
    .testimonials-section,
    .cta-section {
        padding: 60px 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: 300px;
    }
}

/* ================================
   TABLET BREAKPOINT (1024px)
   ================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .about-section {
        padding: 80px 40px;
        gap: 50px;
    }

    .services-section,
    .portfolio-preview,
    .testimonials-section,
    .cta-section {
        padding: 80px 40px;
    }
}

/* ================================
   HERO SLIDER DOTS
   ================================ */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ================================
   LAZY-LOAD IMAGE FADE
   ================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ================================
   SITE FOOTER
   ================================ */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 32px 20px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.site-footer strong {
    color: #fff;
    font-weight: 600;
}

.site-footer a {
    color: var(--brand);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand-dark);
}

.site-footer .footer-divider {
    display: inline-block;
    margin: 0 8px;
    opacity: 0.4;
}