/* ============================================
   NABIR GROUP - Professional Portfolio
   ============================================ */

:root {
    --color-bg: #ffffff;
    --color-bg-elevated: #f8fafc;
    --color-bg-card: #ffffff;
    --color-primary: #da9a3b;
    --color-primary-light: #e8b55c;
    --color-primary-rgb: 218, 154, 59;
    --color-accent: #da9a3b;
    --color-accent-muted: #e8b55c;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-border: rgba(15, 23, 42, 0.12);
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CUSTOM CURSOR (Desktop)
   ============================================ */

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
}

.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--color-primary-light);
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(var(--color-primary-rgb), 0.08), transparent 55%),
        var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.navbar .logo-img {
    height: 38px;
}

.navbar.scrolled .logo-img {
    height: 34px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* ============================================
   HERO SECTION - Professional & Impactful
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--color-primary-rgb), 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(var(--color-primary-rgb), 0.10), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(var(--color-primary-rgb), 0.08), transparent);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #ffffff, transparent);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.hero-shapes.parallax .shape {
    transition: transform 0.1s ease-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: 10%;
    left: -50px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-primary-light);
    top: 50%;
    left: 30%;
    animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(var(--color-primary-rgb), 0.12);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--color-primary-light);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb), 0.28);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(var(--color-primary-rgb), 0.34);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-light);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* Hero entrance animations */
.animate-on-load .hero-badge,
.animate-on-load .hero-title-line,
.animate-on-load .hero-subtitle,
.animate-on-load .hero-cta,
.animate-on-load .hero-stats {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.35s; }
.animate-delay-4 { animation-delay: 0.5s; }
.animate-delay-5 { animation-delay: 0.65s; }
.animate-delay-6 { animation-delay: 0.8s; }
.animate-delay-7 { animation-delay: 1s; }

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--delay, 0) * 0.5s);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic button effect - CSS prepares for JS */
.btn.magnetic {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   SECTION COMMON
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 120px 0;
    background: var(--color-bg-elevated);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 675px) {
    .about-grid {
        display: block;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: start;
    }
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary-light);
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.about-card:hover {
    border-color: rgba(218, 154, 59, 0.3);
    transform: translateY(-4px);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.about-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ============================================
   COMPANIES SECTION
   ============================================ */

.companies {
    padding: 120px 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.company-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.company-card:hover {
    border-color: rgba(218, 154, 59, 0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.company-card.featured {
    grid-column: span 1;
    border-color: rgba(218, 154, 59, 0.2);
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(var(--color-primary-rgb), 0.08) 100%);
}

.company-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.company-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.company-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.company-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.company-link:hover {
    color: var(--color-primary-light);
}

/* ============================================
   MISSION VISION GOAL
   ============================================ */

.mission {
    padding: 120px 0;
    background: var(--color-bg-elevated);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mission-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mission-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

.mission-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(var(--color-primary-rgb), 0.18);
    margin-bottom: 16px;
    line-height: 1;
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.mission-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #eef2ff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
    gap: 40px;
    align-items: stretch;
}

.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    padding: 28px 28px 22px;
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
@media (max-width: 768px) {
    .contact-card-header {
        display: block;
    }
}

.contact-card-header h3 {
    margin: 0;
}

.contact-status {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.contact-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.contact-lead {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-items-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.contact-item {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-details a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px dashed var(--color-border);
    margin-top: 10px;
    padding-top: 14px;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(var(--color-primary-rgb), 0.25), rgba(var(--color-primary-rgb), 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.contact-map {
    border-radius: 28px;
    padding: 20px 20px 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    min-height: 340px;
}

.contact-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.contact-map-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-map-pill i {
    color: var(--color-primary);
}

.contact-map-tags {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-map-tags .tag {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.contact-map-tags .tag.active {
    border-color: rgba(var(--color-primary-rgb), 0.3);
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.contact-map-frame {
    border-radius: 18px;
    overflow: hidden;
    margin-top: 4px;
    height: 90%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 80px 0 40px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    height: 48px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--color-primary-light);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-elevated);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--color-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .companies-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        display: inline-block;
    }

    .contact-map {
        min-height: 260px;
    }

    .contact-items-inline {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-load .hero-badge,
    .animate-on-load .hero-title-line,
    .animate-on-load .hero-subtitle,
    .animate-on-load .hero-cta,
    .animate-on-load .hero-stats {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-animate.visible {
        opacity: 1;
        transform: none;
    }
    .shape {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }
}
