:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-light: #555555;
    --accent-color: #000000;
    --gray-light: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none; /* Hide default cursor */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: none; /* Custom cursor handles this */
    transition: var(--transition);
    border: 1px solid transparent;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #fff;
}

.primary-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#logo-canvas {
    /* Dimensions controlled by JS/HTML, styling here for layout */
    display: block;
}

.logo-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-top: -5px; /* Adjust spacing closer to canvas */
    margin-left: 2px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    cursor: none; /* Custom cursor handles this */
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: none; /* Custom cursor handles this */
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #0b0b0b;
    color: #fff;
    padding-top: 80px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-strong { display: block; }

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 500px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 500;
    cursor: none;
}
.outline-btn:hover { 
    border-color: #fff; 
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px); 
}
.outline-btn .arrow { display: inline-block; transform: translateY(2px); }

/* Hero Visual - 3D Slider Integration */
.hero-right { 
    display: flex; 
    justify-content: center; 
    perspective: 1000px; /* Essential for 3D effect */
    overflow: visible; /* Allow rotation to spill slightly if needed */
}

.hero-slider-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: translate(0, 20px); /* Adjust vertical position */
}

.hero-slider {
    position: absolute;
    width: 60px; /* Item width */
    height: 80px; /* Item height */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: autoRun 20s linear infinite;
    z-index: 2;
}

@keyframes autoRun {
    from {
        transform: translate(-50%, -50%) rotateX(-10deg) rotateY(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(-10deg) rotateY(360deg);
    }
}

/* Back Arrow for Service Pages */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    padding: 0 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px; /* Pill shape */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: none; /* Let custom cursor handle it */
    text-decoration: none;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}

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

.slider-item {
    position: absolute;
    inset: 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(180px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s;
}

.slider-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.slider-item svg {
    width: 32px;
    height: 32px;
    color: #fff;
    opacity: 0.9;
}

/* Central Core Image */
.hero-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #222 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-core img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    opacity: 0.8;
}

/* Removed old Hero Visual styles to avoid conflict, or overwrite them */
.hero-visual { display: none; }

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .hero-slider-container {
        transform: scale(0.8) translate(0, 20px);
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Services */
.services-section {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.services-section .container { position: relative; z-index: 1; }
#services-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

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

.service-card {
    background-color: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.services-revealed .service-card {
    opacity: 1;
    transform: translateY(0);
}
.services-revealed .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-revealed .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-revealed .service-card:nth-child(3) { transition-delay: 0.3s; }
.service-icon {
    margin-bottom: 24px;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Process Section */
.process-section {
    background-color: var(--bg-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.process-step {
    position: relative;
    padding-top: 20px;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-light);
    line-height: 1;
    margin-bottom: 16px;
    position: absolute;
    top: 0;
    right: 20px;
    z-index: -1;
    opacity: 0.5;
}

/* Darken number slightly for visibility if needed */
.step-number { color: #f0f0f0; }

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About - Redesigned */
.about-section {
    background-color: var(--bg-color);
    padding: 0; /* Remove padding as wrapper handles it */
}

.about-design-wrapper {
    background-color: #0b0b0b;
    color: #fff;
    width: 100%; /* Full width */
    padding: 100px 0; /* Vertical padding */
    position: relative;
    overflow: hidden;
}

.about-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-design-content {
    position: relative;
    z-index: 10;
}

.about-design-title {
    font-family: 'Georgia', 'Times New Roman', serif; /* Serif to match the editorial style */
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 32px;
    color: #fff;
}

.about-design-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.about-cta-wrapper {
    margin-top: 40px;
}

.on-dark {
    background-color: #fff;
    color: #000;
    border: none;
    cursor: none;
}

.on-dark:hover {
    background-color: #e0e0e0;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Visual Stack */
.about-design-visual {
    position: relative;
    height: 600px; /* Increased height for vertical stack */
    display: flex;
    justify-content: center; 
    align-items: center;
}

.stack-card {
    position: absolute;
    width: 340px;
    height: 460px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.5s ease;
    left: 50%; /* Center horizontally */
}

.card-front {
    z-index: 3;
    top: 40px;
    transform: translateX(-50%);
    overflow: hidden;
}

.card-gradient {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #111 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.about-img {
    width: 50%;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* Layered cards behind - Stacked Downwards */
.card-back-1 {
    z-index: 2;
    top: 80px; /* 40px down */
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) scale(0.95);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
}

.card-back-2 {
    z-index: 1;
    top: 120px; /* 80px down */
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%) scale(0.9);
    border: 1px solid rgba(255,255,255,0.02);
}

/* Hover effect on visual to expand cards vertically */
.about-design-visual:hover .card-front {
    transform: translateX(-50%) translateY(-10px);
}
.about-design-visual:hover .card-back-1 {
    top: 90px;
    transform: translateX(-50%) scale(0.95);
}
.about-design-visual:hover .card-back-2 {
    top: 140px;
    transform: translateX(-50%) scale(0.9);
}

/* Responsive */
@media (max-width: 968px) {
    .about-grid-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about-design-wrapper {
        padding: 60px 0;
    }
    
    .about-design-visual {
        height: 500px;
        justify-content: center;
    }
    
    .stack-card {
        width: 280px;
        height: 380px;
        /* left: 50% is inherited */
    }
    
    .card-front { top: 20px; }
    .card-back-1 { top: 50px; }
    .card-back-2 { top: 80px; }
}

@media (max-width: 480px) {
    .about-design-title {
        font-size: 2.5rem;
    }
    .about-design-wrapper {
        padding: 30px 20px;
    }
    .stack-card {
        width: 240px;
        height: 320px;
    }
    /* Adjust spacing for smaller cards */
    .card-front { top: 10px; }
    .card-back-1 { top: 35px; }
    .card-back-2 { top: 60px; }
}

/* Contact */
.contact-section {
    background-color: var(--bg-color);
}

.contact-intro {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-light);
    cursor: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}
.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-info {
    padding-left: 40px;
    border-left: 1px solid var(--border-color);
}

.info-item {
    margin-bottom: 40px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: #0b0b0b;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-reg {
    margin-top: 16px;
    font-size: 0.85rem !important;
    opacity: 0.4;
}

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    cursor: none;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-list.active {
        transform: translateY(0);
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-group { justify-content: center; }
    .hero-title { font-size: 2.4rem; }
    .hero-visual { width: 280px; height: 280px; transform: translate(0, 20px); }
    .hero-image { width: 56%; height: 56%; }

    .hero-section {
        height: auto;
        min-height: calc(100vh - 80px);
        padding-top: 100px;
        clip-path: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }
    
    /* Disable custom cursor on mobile touch devices for better UX */
    @media (hover: none) and (pointer: coarse) {
        html, .btn, .nav-list a, .mobile-menu-btn, .outline-btn, .on-dark, .footer-col ul li a, .form-group input, .form-group textarea {
            cursor: auto;
        }
        .cursor-dot, .cursor-outline {
            display: none;
        }
    }
}
