:root {
    --primary: #000000;
    --primary-light: #333333;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
}

.logo-text span {
    font-weight: 400;
    opacity: 0.6;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    padding: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.dropdown-trigger i {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}



.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--bg-light);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.btn-primary.large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border);
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-secondary.large {
    padding: 16px 32px;
    font-size: 16px;
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, var(--accent-light), transparent 40%),
        radial-gradient(circle at bottom left, #f1f5f9, transparent 30%);
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.visual-card {
    position: absolute;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    border: 1px solid var(--border);
}

.main-card {
    top: 20%;
    left: 10%;
    width: 240px;
    animation: float 6s ease-in-out infinite;
}

.secondary-card {
    bottom: 10%;
    right: 5%;
    width: 200px;
    animation: float 6s ease-in-out infinite 3s;
}

.visual-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 16px;
}

.visual-icon.pink {
    color: #ec4899;
}

.visual-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.visual-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.visual-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Page Headers */
.page-header {
    background-color: var(--bg-light);
    padding: 160px 0 80px;
    text-align: center;
}

.page-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.subtitle {
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Cards */
.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Services */
.services {
    background-color: var(--bg-light);
}

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

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
}

.view-all-container {
    text-align: center;
    margin-top: 60px;
}

/* Services Detail */
.detail-grid {
    display: grid;
    gap: 40px;
}

.detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.detail-icon i {
    font-size: 32px;
}

.detail-content h2 {
    margin-bottom: 16px;
}

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

.about-image {
    position: relative;
    padding-right: 40px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e2e8f0;
    border-radius: var(--radius);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 5;
}

.experience-badge .years {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.check-list {
    margin-top: 24px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list li i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

/* Contact Detail */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-items {
    display: grid;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 24px !important;
}

.info-item i {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.map-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

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

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 24px;
}

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

.footer-links a {
    color: var(--text-muted);
}

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

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
}

.social-icons a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- RESPONSIVE OVERHAUL --- */

@media (max-width: 1024px) {

    .about-container,
    .contact-grid {
        gap: 40px;
    }

    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .detail-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .check-list {
        display: inline-block;
        text-align: left;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 32px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 20px;
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .experience-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -30px;
    }

    .check-list {
        display: inline-block;
        text-align: left;
    }

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

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

    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 20px auto;
    }

    .footer-links,
    .footer-social {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

    .page-header {
        padding: 120px 0 60px;
    }
}

@media (max-width: 480px) {

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

    .stat-item {
        padding: 16px;
    }
}

/* --- ANIMATIONS & PREMIUM UI --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Subpage Layouts */
.subpage .page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}

.content-grid-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
}

.content-grid-detailed.inverted {
    direction: rtl;
}

.content-grid-detailed.inverted .text-block,
.content-grid-detailed.inverted .visual-placeholder-detailed {
    direction: ltr;
}

.h2-premium {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-item i {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: white;
}

.visual-placeholder-detailed {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-light) 100%);
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.large-icon {
    width: 100px;
    height: 100px;
    color: var(--border);
    opacity: 0.5;
    margin-bottom: 32px;
}

.large-icon.accent {
    color: var(--accent);
    opacity: 0.8;
}

.large-icon.red {
    color: #ef4444;
    opacity: 0.8;
}

.spec-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.spec-list span {
    padding: 6px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

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

.spec-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Final Touch Device Optimization */
@media (hover: none) {

    .service-card:hover,
    .spec-card:hover {
        transform: none;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }
}

/* Floating Call Button */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floating-pulse 2s infinite;
}

.floating-call:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.5);
}

.floating-call i {
    width: 28px;
    height: 28px;
}

@keyframes floating-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@media (max-width: 768px) {
    .floating-call {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-call i {
        width: 24px;
        height: 24px;
    }
}