@font-face {
    font-family: 'MirandaSans';
    src: url('assets/fonts/MirandaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MirandaSans';
    src: url('assets/fonts/MirandaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'MirandaSans';
    src: url('assets/fonts/MirandaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-primary: #9F8151; /* Khawas Gold */
    --accent-primary-glow: rgba(159, 129, 81, 0.4);
    --khawas-green: #0A4834;
    --khawas-green-glow: rgba(10, 72, 52, 0.6);
    --ss-primary: #C12039;
    --ss-dark-bg: #0F0F0F;
    
    --font-heading: 'MirandaSans', sans-serif;
    --font-body: 'MirandaSans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.gradient-text {
    background: linear-gradient(90deg, var(--text-main) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: rgba(5, 5, 5, 0.0);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links a.company-link:hover {
    color: var(--ss-primary);
}

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-btn.small {
    padding: 10px 24px;
    font-size: 14px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.cta-btn.small:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-primary-glow);
}

.cta-btn.primary {
    padding: 16px 32px;
    font-size: 16px;
    background: var(--khawas-green);
    color: var(--text-main);
    border: none;
    box-shadow: 0 0 30px var(--khawas-green-glow);
}

.cta-btn.primary:hover {
    box-shadow: 0 0 50px rgba(10, 72, 52, 0.8);
    transform: translateY(-2px);
    background: #106346;
}

.cta-btn.secondary {
    padding: 16px 32px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 72, 52, 0.25) 0%, rgba(5,5,5,0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(159, 129, 81, 0.1);
    border: 1px solid rgba(159, 129, 81, 0.3);
    border-radius: 30px;
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

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

/* Hero Visual */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.hero-main-img {
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(10, 72, 52, 0.3);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper:hover .hero-main-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

@keyframes float {
    0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); }
    100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
}

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

.features-polished-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card-pro {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card-pro:hover {
    transform: translateY(-5px);
    border-color: rgba(159, 129, 81, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(159, 129, 81, 0.05);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(159, 129, 81, 0.1);
    border: 1px solid rgba(159, 129, 81, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.feature-card-pro:hover .card-icon {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(159, 129, 81, 0.4);
    transform: scale(1.05);
}

.feature-card-pro h3 {
    font-size: 22px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.feature-card-pro p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.hover-border-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(159, 129, 81, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform: translate(30%, -30%);
}

.feature-card-pro:hover .hover-border-glow {
    opacity: 1;
}

.feature-card-pro.hidden-el {
    transition-delay: calc(var(--delay) * 0.1s);
}

/* Company Section (Taxmetry Reference) */
.company-section {
    padding: 120px 0;
    background-color: var(--ss-dark-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.company-bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.company-bg-watermark img {
    height: 400px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
}

.company-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-logo-wrapper {
    position: relative;
    margin-bottom: 54px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 40px 10px rgba(193, 32, 57, 0.2);
    z-index: -1;
}

.company-logo {
    height: 130px;
    object-fit: contain;
}

.brand-label {
    padding: 8px 16px;
    background: rgba(193, 32, 57, 0.1);
    border: 1px solid rgba(193, 32, 57, 0.3);
    border-radius: 30px;
    color: var(--ss-primary);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.company-title {
    font-family: var(--font-heading);
    color: #FFF;
    font-weight: 800;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

.company-desc {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.7);
    font-size: 19px;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 48px;
}

.animated-divider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line {
    width: 40px;
    height: 1px;
}

.left-line {
    background: linear-gradient(to right, transparent, var(--ss-primary));
}

.right-line {
    background: linear-gradient(to left, transparent, var(--ss-primary));
}

.dot {
    width: 4px;
    height: 4px;
    background-color: var(--ss-primary);
    border-radius: 50%;
}

/* Footer */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

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

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Scroll Animations */
.hidden-el {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show-el {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.hidden-el {
    transition-delay: calc(var(--delay) * 0.15s);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-image-wrapper {
        right: 0;
    }
    .hero-main-img {
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }
    
    .hero-image-wrapper {
        justify-content: center;
        margin-top: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .company-title {
        font-size: 38px;
    }
    
    .company-bg-watermark img {
        height: 250px;
    }
    
    .company-logo {
        height: 90px;
    }
    
    .company-desc {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-btn.primary, .cta-btn.secondary {
        width: 100%;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-polished-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-section {
        padding: 80px 0;
    }
    
    .company-title {
        font-size: 28px;
    }
    
    .company-desc {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
