/* Roots Beyond - Main Stylesheet */

:root {
    --primary-color: #990c0c;
    --secondary-color: rgba(26, 26, 26, 0.47);
    --bg-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --green-accent: #0C6C20;
    --red-accent: #C24A3A;
    --card-bg: #1a1a1a;
    --glass-bg: rgba(26, 26, 26, 0.9);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b31010;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 12, 12, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

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

.logo-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(153, 12, 12, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(153, 12, 12, 0.1), transparent);
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 600px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-img {
    height: 300px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feature-img img {
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.feature-card:hover .feature-img img {
    transform: scale(1.05);
}

.feature-info {
    padding: 2rem;
}

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

/* Alternating Feature Layout */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-row-img {
    flex: 1;
}

.feature-row-img img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-row-text {
    flex: 1;
}

/* Workflow Section */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.workflow-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    z-index: 1;
}

.workflow-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    height: 400px;
    background: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2.5rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.why-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

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

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

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

input, textarea, select {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.47);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.upload-area {
    border: 2px dashed rgba(255,255,255,0.2);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(153, 12, 12, 0.05);
}

/* Support Page Layout */
.support-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .feature-row {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .support-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    section {
        padding: 60px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
