:root {
    /* Brand Colors - Premium Light & Orange */
    --bg-main: #ffffff;
    --bg-surface: #fffcf9;
    --bg-card: #ffffff;

    --primary: #ff6b00; /* Vibrant Orange */
    --primary-hover: #e65f00;
    --primary-dim: rgba(255, 107, 0, 0.08);
    --secondary: #1e293b;
    --accent: #ff9e44;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #ff6b00 0%, #ff9f43 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 107, 0, 0.04) 0%, transparent 100%);
    --gradient-text: linear-gradient(135deg, #ff6b00 0%, #ffb16a 100%);

    /* Premium Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 107, 0, 0.15);
    --glass-shine: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 25px -5px rgba(255, 107, 0, 0.3);

    /* Layout */
    --max-width: 1400px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;

    /* Animations */
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Aura */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.05) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.4s var(--ease-in-out);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
    padding: clamp(5rem, 12vw, 10rem) 0;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    margin-bottom: clamp(3rem, 8vw, 6rem);
    text-align: center;
    line-height: 1.1;
}

.section-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    z-index: 1002;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.4s var(--ease-in-out);
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.btn.outline {
    border: 2px solid var(--glass-border);
    color: var(--text-main);
}

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

/* Hero Section */
.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: var(--gradient-surface);
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.nav-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 5.8rem);
    line-height: 1.05;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.hero-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
}

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

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

/* Cube Animation */
.cube-wrap {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 25s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.15);
    border-radius: 20px;
}

.cube-face i {
    color: var(--primary);
    font-size: 3.5rem;
}

.cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(140px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(140px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(140px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(140px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(140px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(140px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    animation: float 5s ease-in-out infinite;
    border: 1px solid var(--glass-border);
}

.badge-1 { top: 15%; right: -5%; }
.badge-2 { bottom: 15%; left: -5%; animation-delay: 2.5s; }

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

.badge-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.badge-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.badge-text h4 {
    font-size: 1.05rem;
    color: var(--text-main);
}

/* Stats Section */
.stats-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: center;
}

.stat-item h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Cards & Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    transition: 0.5s var(--ease-in-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.04;
    transition: 0.5s;
    line-height: 1;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    transition: 0.5s;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.card-p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.service-cta {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Process Carousel */
.process-carousel-wrapper {
    margin-top: 4rem;
}

.process-carousel {
    overflow: hidden;
    padding: 1rem;
}

.process-track {
    display: flex;
    gap: 2rem;
    transition: 0.6s var(--ease-in-out);
}

.process-step {
    flex: 0 0 calc(33.333% - 1.33rem);
    padding: 3.5rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: 0.4s;
    box-shadow: var(--shadow-sm);
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-num {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.08;
}

.process-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 4rem;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.4s;
}

.dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 10px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 420px);
    gap: 2.5rem;
}

.portfolio-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.6s var(--ease-in-out);
    box-shadow: var(--shadow-sm);
}

.portfolio-card:nth-child(1) { grid-column: span 7; }
.portfolio-card:nth-child(2) { grid-column: span 5; }
.portfolio-card:nth-child(3) { grid-column: span 5; }
.portfolio-card:nth-child(4) { grid-column: span 7; }

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.portfolio-icon {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 7rem;
    color: var(--primary);
    opacity: 0.04;
    transition: 0.6s;
}

.portfolio-card:hover .portfolio-icon {
    opacity: 0.1;
    transform: scale(1.1) rotate(-10deg);
}

.portfolio-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.4rem 1.2rem;
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* About Section */
.about-section {
    background: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-detail-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.about-detail-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.about-detail-item p {
    color: var(--text-secondary);
}

/* Contact Page (Help.html) Extra UI */
.help-section {
    padding-top: 160px !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
}

.info-item h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.info-item p, .info-item a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-box {
    background: #ffffff;
    padding: 5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-field {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: 0.3s;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-dim);
}

textarea.input-field {
    min-height: 150px;
    resize: none;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAB */
.fab {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 70px;
    height: 70px;
    background: var(--gradient-brand) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.8rem;
    box-shadow: var(--shadow-primary);
    z-index: 1000;
    transition: 0.4s var(--ease-out-back);
    animation: fab-pulse 2s infinite;
}

.fab:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1003;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 10px;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--primary); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--primary); }

.nav-menu.mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.5s var(--ease-in-out);
    z-index: 1001;
}

.nav-menu.mobile.active {
    right: 0;
}

.nav-menu.mobile .nav-link {
    font-size: 1.5rem;
}

/* Canvas Overlay */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-in-out);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-visual { order: -1; height: 350px; }
    .cube-wrap { width: 220px; height: 220px; }
    .cube-face:nth-child(n) { transform: translateZ(110px); }
    .cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(110px); }
    .cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(110px); }
    .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(110px); }
    .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(110px); }
    .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(110px); }
    .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(110px); }
    
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .portfolio-card:nth-child(n) { grid-column: span 1; height: 400px; }
    
    .about-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-box { padding: 3rem 2rem; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .process-step { flex: 0 0 100%; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 250px; }
    .cube-wrap { width: 160px; height: 160px; }
    .cube-face:nth-child(n) { transform: translateZ(80px); }
    .cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(80px); }
    .cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(80px); }
    .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(80px); }
    .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(80px); }
    .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(80px); }
    .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(80px); }
}