/* style.css */
:root {
    --bg-dark: #0a0e17;
    --bg-card: #141b2d;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent-gold: #c9a84c;
    --accent-orange: #e37e33;
    --accent-blue: #3b82f6;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-btn.active, .lang-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Hero Section / Mind Map */
.mindmap-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero.png') center/cover no-repeat;
    padding-top: 80px;
}

.mindmap-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.7) 100%);
    z-index: 1;
}

.mindmap-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node {
    position: absolute;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(20, 27, 45, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    text-align: center;
    transition: all 0.3s ease;
    
    /* Radial positioning math injected via inline style --angle */
    transform: rotate(var(--angle)) translate(250px) rotate(calc(var(--angle) * -1));
}

.node:hover {
    transform: rotate(var(--angle)) translate(250px) rotate(calc(var(--angle) * -1)) scale(1.05);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.node .icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.node span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sections */
.detail-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.detail-section:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}
.detail-section:nth-child(even) > * {
    direction: ltr;
}

.section-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.section-content h3 {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.section-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.section-image:hover img {
    transform: scale(1.03);
}

/* Form */
.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 8px;
    font-family: var(--font-body);
}

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

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange), #c2571a);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(227, 126, 51, 0.4);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #05080f;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

/* Services Preview */
.services-preview {
    position: relative;
    padding: 5rem 2rem 1rem;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(8, 12, 22, 0.92) 0%, rgba(5, 8, 15, 1) 100%);
}

.services-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(201, 168, 76, 0.05), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(227, 126, 51, 0.08), transparent 22%);
}

.services-grid {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 260px;
    padding: 1.6rem 1.45rem 1.35rem;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 34%),
        linear-gradient(180deg, rgba(20, 27, 45, 0.92) 0%, rgba(12, 18, 32, 0.96) 100%);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(18px);
    opacity: 0;
    animation: service-card-enter 0.72s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transition:
        transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease,
        filter 0.35s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 12%, rgba(255,255,255,0.18), transparent 16%),
        linear-gradient(135deg, rgba(201, 168, 76, 0.11), transparent 38%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0.72;
    z-index: -2;
    transform: translate3d(-8%, -10%, 0) scale(1.05);
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    left: 1.35rem;
    right: 1.35rem;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    opacity: 0.55;
    transform: scaleX(0.55);
    transform-origin: left center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.018);
    border-color: rgba(201, 168, 76, 0.38);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.36),
        0 0 24px rgba(201, 168, 76, 0.08),
        0 0 48px rgba(59, 130, 246, 0.06),
        0 0 0 1px rgba(201, 168, 76, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
    filter: brightness(1.03);
}

.service-card:hover::before {
    opacity: 1;
    transform: translate3d(6%, 4%, 0) scale(1.14);
}

.service-card:hover::after {
    opacity: 0.95;
    transform: scaleX(1);
}

.sc-icon {
    width: 3.45rem;
    height: 3.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%),
        rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.24);
    color: var(--accent-gold);
    font-size: 1.4rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 14px 28px rgba(0,0,0,0.2);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.service-card:nth-child(2n) .sc-icon,
.service-card:nth-child(5) .sc-icon,
.service-card:nth-child(8) .sc-icon {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.26);
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%),
        rgba(59, 130, 246, 0.08);
}

.service-card:hover .sc-icon {
    transform: translateY(-4px) scale(1.07);
    border-color: rgba(201, 168, 76, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 18px 34px rgba(0,0,0,0.26),
        0 0 18px rgba(201, 168, 76, 0.14);
}

.service-card:nth-child(2n):hover .sc-icon,
.service-card:nth-child(5):hover .sc-icon,
.service-card:nth-child(8):hover .sc-icon {
    border-color: rgba(59, 130, 246, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 18px 34px rgba(0,0,0,0.26),
        0 0 20px rgba(59, 130, 246, 0.18);
}

.service-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.15;
    color: #f7f9ff;
    transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
}

.service-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    transition: color 0.35s ease;
}

.sc-price {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.08);
    color: #f8e2a0;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card:hover h3 {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255,255,255,0.08);
    transform: translateX(1px);
}

.service-card:hover p {
    color: #aeb7c7;
}

.service-card:hover .sc-price {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.38);
    background: rgba(201, 168, 76, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 8px 20px rgba(201, 168, 76, 0.08);
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.03s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.13s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.18s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.23s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.28s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.33s; }
.services-grid .service-card:nth-child(8) { animation-delay: 0.38s; }

@keyframes service-card-enter {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .services-preview {
        padding: 4rem 1.5rem 0.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .service-card {
        min-height: 235px;
        padding: 1.35rem 1.2rem 1.15rem;
        border-radius: 20px;
    }

    .service-card h3 {
        font-size: 1.35rem;
    }

    .mindmap-container {
        height: auto;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .center-logo {
        position: relative;
        margin-bottom: 2rem;
    }
    
    .node {
        position: relative;
        transform: none !important;
        width: 100%;
        max-width: 300px;
    }
    
    .node:hover {
        transform: translateY(-5px) !important;
    }
    
    .detail-section, .detail-section:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1.5rem;
        direction: ltr; /* Reset alternate layout on mobile */
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
