/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D3748;
    --secondary-color: #4A5568;
    --accent-color: #CD512F;
    --accent-light: #E66B4A;
    --accent-dark: #A8401F;
    --dark-color: #1A202C;
    --light-color: #F7FAFC;
    --text-color: #2D3748;
    --text-light: #718096;
    --white: #ffffff;
    --border-color: #E2E8F0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 400;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(205, 81, 47, 0.2);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 81, 47, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: var(--dark-color);
    letter-spacing: -0.02em;
    font-weight: 600;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: var(--light-color);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    color: var(--dark-color);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.3s backwards;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-buttons .btn:nth-child(1) {
    animation: fadeInUp 1s ease 0.7s backwards;
}

.hero-buttons .btn:nth-child(2) {
    animation: fadeInUp 1s ease 0.9s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 400;
}

/* Services Section */
.services {
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

#services-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: all 0.2s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: translateY(-4px);
    color: var(--accent-dark);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-5px); }
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.hidden-portfolio {
    display: none;
}

.hidden-portfolio.show {
    display: block;
}

.view-more-btn {
    background: transparent;
    color: var(--accent-color);
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 16px 0;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0;
}

.view-more-btn:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-light);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn.active i {
    transform: rotate(180deg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    perspective: 1000px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(205, 81, 47, 0.8) 0%, rgba(168, 64, 31, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(205, 81, 47, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    padding: 32px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    width: 90%;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.portfolio-overlay p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.portfolio-overlay::after {
    content: '→';
    display: block;
    margin-top: 16px;
    font-size: 32px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay::after {
    opacity: 1;
    transform: translateX(0);
}

/* What We Do Section */
.what-we-do {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f2 50%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.what-we-do::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(205, 81, 47, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(205, 81, 47, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(205, 81, 47, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.what-we-do::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 80px,
        rgba(205, 81, 47, 0.02) 80px,
        rgba(205, 81, 47, 0.02) 160px
    );
    pointer-events: none;
    z-index: 1;
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(160px);
    }
}

.what-we-do .container {
    position: relative;
    z-index: 2;
}

.what-we-do-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-detail {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.service-detail:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(205, 81, 47, 0.3);
    background: #222222;
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-detail-icon i {
    font-size: 28px;
    color: var(--white);
}

.service-detail h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

.service-detail ul {
    list-style: none;
    padding: 0;
}

.service-detail ul li {
    padding-left: 28px;
    margin-bottom: 16px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.service-detail ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
}

.additional-services {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border-radius: 16px;
}

.additional-services h3 {
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--dark-color);
    font-weight: 600;
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px 32px;
    max-width: 100%;
    margin: 0;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--text-color);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.services-list li i {
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
}

.services-list li:hover {
    padding-left: 8px;
    color: var(--accent-color);
}

.services-list li:hover i {
    transform: scale(1.2);
}

/* About Section */
.about {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat i {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: block;
    transition: all 0.2s ease;
}

.stat:hover i {
    transform: translateY(-4px);
    color: var(--accent-dark);
}

.stat h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item i {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(205, 81, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #000000;
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section h3 span {
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: space-around;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Scroll animations disabled */
/* .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
} */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Portfolio Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animated Background Shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(205, 81, 47, 0.3); }
    50% { box-shadow: 0 0 40px rgba(205, 81, 47, 0.6); }
}
