/* ============================================
   RUDRANSH INC. - PORTFOLIO WEBSITE STYLES
   Thinking is Everything
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --dark-bg: #0a0a0a;
    
    /* Change this line from #ffffff to #f9f9f9 (off-white) */
    --light-bg: #ededed; 
    
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* === DARK MODE VARIABLES === */
body.dark-mode {
    --light-bg: #1a1a1a;
    --dark-bg: #0a0a0a;
    --text-dark: #f5f5f5;
    --text-light: #1a1a1a;
    --text-gray: #b0b0b0;
    --border-color: #333333;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .stats {
    background: var(--dark-bg);
}

body.dark-mode .testimonials {
    background: #0f0f0f;
}

body.dark-mode .service-card,
body.dark-mode .portfolio-item,
body.dark-mode .portfolio-item-full,
body.dark-mode .testimonial-card,
body.dark-mode .mv-card,
body.dark-mode .choose-item,
body.dark-mode .contact-form-wrapper {
    background: #252525;
    border: 1px solid #333;
}

body.dark-mode .navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
}

body.dark-mode .service-placeholder,
body.dark-mode .portfolio-placeholder,
body.dark-mode .member-placeholder,
body.dark-mode .image-placeholder {
    opacity: 0.9;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #1a1a1a;
    color: var(--text-dark);
    border-color: #333;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    background: #252525;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .page-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

body.dark-mode .page-subtitle {
    color: #e0e0e0;
}

body.dark-mode .breadcrumb {
    color: #b0b0b0;
}

body.dark-mode .breadcrumb a {
    color: #d0d0d0;
}

body.dark-mode .breadcrumb a:hover {
    color: var(--primary-color);
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .section-subtitle {
    color: #b0b0b0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.loader-cube {
    perspective: 800px;
    margin: 0 auto 40px;
    width: 100px;
    height: 100px;
    position: relative;
    animation: spin 2s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    left: 10px;
    top: 10px;
    opacity: 0.8;
}

.preloader-text {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.preloader-tagline {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    z-index: 10;
}

/* === THEME SWITCH === */
/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 4em;
    height: 2.2em;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.4s;
    border-radius: 30px;
    overflow: hidden;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.2em;
    width: 1.2em;
    border-radius: 20px;
    left: 0.5em;
    bottom: 0.5em;
    transition: 0.4s;
    transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
    box-shadow: inset 8px -4px 0px 0px #fff;
}

.switch input:checked + .slider {
    background-color: #00a6ff;
}

.switch input:checked + .slider:before {
    transform: translateX(1.8em);
    box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.star {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    width: 5px;
    transition: all 0.4s;
    height: 5px;
}

.star_1 {
    left: 2.5em;
    top: 0.5em;
}

.star_2 {
    left: 2.2em;
    top: 1.2em;
}

.star_3 {
    left: 3em;
    top: 0.9em;
}

.switch input:checked ~ .slider .star {
    opacity: 0;
}

.cloud {
    width: 3.5em;
    position: absolute;
    bottom: -1.4em;
    left: -1.1em;
    opacity: 0;
    transition: all 0.4s;
}

.switch input:checked ~ .slider .cloud {
    opacity: 1;
}

/* Mobile adjustments for theme switch */
@media (max-width: 768px) {
    .switch {
        font-size: 14px;
        width: 3.5em;
        height: 2em;
        margin-left: 15px;
    }
}

/* === CUSTOM CURSOR === */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    transition: transform 0.1s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-r {
    color: var(--primary-color);
    font-size: 2rem;
    font-family: var(--font-display);
}

.logo-text {
    color: var(--text-dark);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-white {
    background: var(--light-bg);
    color: var(--primary-color);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--gradient-2);
    border-radius: 50%;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-3);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    top: 30%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.title-line {
    display: block;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 3D Cube */
.hero-3d {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-3d {
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(108, 99, 255, 0.1);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.face.front { transform: translateZ(100px); }
.face.back { transform: rotateY(180deg) translateZ(100px); }
.face.left { transform: rotateY(-90deg) translateZ(100px); }
.face.right { transform: rotateY(90deg) translateZ(100px); }
.face.top { transform: rotateX(90deg) translateZ(100px); }
.face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-gray);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-gray);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* === STATS SECTION === */
.stats {
    padding: 80px 0;
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--text-light);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
}

/* === SECTION STYLES === */
.services-preview,
.portfolio-preview,
.testimonials,
.about-story,
.mission-vision,
.team,
.why-choose,
.services-detail,
.portfolio-section,
.contact-section,
.process {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 10px;
}

/* === PORTFOLIO === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 5px 15px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.text-center {
    text-align: center;
}

/* === TESTIMONIALS === */
.testimonials {
    background: #f9fafb;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* === CTA SECTION === */
.cta {
    padding: 100px 0;
    background: var(--gradient-1);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* === FOOTER === */
.footer {
    background: var(--dark-bg);
    padding: 80px 0 30px;
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 15px;
}

.footer-col p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
}

.footer-bottom i {
    color: var(--secondary-color);
}

/* === PAGE HEADER === */
.page-header {
    padding: 150px 0 100px;
    background: var(--gradient-1);
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.page-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.breadcrumb a {
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
}

/* === ABOUT PAGE === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-2);
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

.fe-1 {
    top: -20px;
    right: -20px;
}

.fe-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 3s;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mv-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    position: relative;
    margin-bottom: 20px;
}

.member-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.member-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .member-social {
    opacity: 1;
}

.member-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.member-social a:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.member-role {
    color: var(--text-gray);
}

/* === WHY CHOOSE US === */
.choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.choose-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.choose-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.choose-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.choose-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.choose-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* === SERVICES DETAIL === */
.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail-card.reverse {
    direction: rtl;
}

.service-detail-card.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-detail-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.service-features i {
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack span {
    padding: 8px 18px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.service-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* === PROCESS TIMELINE === */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 100px;
    width: 2px;
    height: calc(100% - 50px);
    background: var(--border-color);
}

.step-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* === PORTFOLIO PAGE === */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item-full {
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-item-full:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item-full .portfolio-image {
    position: relative;
    height: 300px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item-full:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-view {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.portfolio-view:hover {
    transform: scale(1.1);
}

.portfolio-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* === CONTACT PAGE === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-text p {
    color: var(--text-gray);
    line-height: 1.6;
}

.social-connect h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* ================================================================
   PREMIUM HERO REDESIGN — Rudransh Inc. 2026
   Ultra-dark, immersive, engineered aesthetic
   ================================================================ */

/* --- Force hero to always remain dark, both light & dark mode --- */
.hero,
body.dark-mode .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0B0F1A !important;
}

/* --- Particle canvas --- */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* --- Ambient glow orbs --- */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 65%);
    top: -250px;
    left: -180px;
    animation: glow-drift-1 18s ease-in-out infinite;
}

.hero-glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 65%);
    bottom: -150px;
    right: 50px;
    animation: glow-drift-2 22s ease-in-out infinite;
}

.hero-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 65%);
    top: 30%;
    left: 40%;
    animation: glow-drift-3 26s ease-in-out infinite;
}

@keyframes glow-drift-1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px, 30px) scale(1.05); }
    66%      { transform: translate(-20px, -40px) scale(0.95); }
}
@keyframes glow-drift-2 {
    0%,100% { transform: translate(0,0) scale(1); }
    40%      { transform: translate(-30px, 20px) scale(1.08); }
    70%      { transform: translate(20px, -30px) scale(0.92); }
}
@keyframes glow-drift-3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(25px, -25px) scale(1.1); }
}

/* --- Hero content z-index stack --- */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 80px;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Studio badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1px solid rgba(108, 99, 255, 0.35);
    background: rgba(108, 99, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-family: var(--font-primary);
    backdrop-filter: blur(8px);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6C63FF;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.9);
    animation: badge-pulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badge-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.6); }
}

/* --- Hero headline --- */
.hero .hero-title {
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.06;
    margin-bottom: 26px;
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    color: #ffffff !important;
}

.hero .hero-title .title-line {
    display: block;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.hero .hero-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #6C63FF 0%, #C084FC 55%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* --- Hero subtitle --- */
.hero .hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 42px;
    max-width: 460px;
    line-height: 1.75;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* --- CTA Buttons --- */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6C63FF 0%, #9333EA 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 28px rgba(108, 99, 255, 0.38), 0 8px 24px rgba(0,0,0,0.35);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.1, 1),
                box-shadow 0.35s cubic-bezier(0.2, 0, 0.1, 1);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.btn-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.65), 0 20px 40px rgba(0,0,0,0.4);
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow span,
.btn-glow i {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.1, 1),
                border-color 0.35s,
                background 0.35s,
                box-shadow 0.35s;
}

.btn-ghost:hover {
    border-color: rgba(108, 99, 255, 0.55);
    background: rgba(108, 99, 255, 0.1);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.22);
}

.hero .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Hero metrics strip --- */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 52px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-num {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* --- Three.js wrapper --- */
.hero-3d {
    display: flex;
    justify-content: center;
    align-items: center;
}

.threejs-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    background: #0B0F1A;
    border-radius: 4px;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #0B0F1A;
}

.canvas-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: canvas-glow-pulse 5s ease-in-out infinite;
    z-index: -1;
}

@keyframes canvas-glow-pulse {
    0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.18); }
}

/* --- Premium scroll indicator --- */
.hero .scroll-indicator {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: none;
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-dot {
    position: absolute;
    top: -6px;
    left: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6C63FF;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.9);
    animation: scroll-fall 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scroll-fall {
    0%   { top: -6px;  opacity: 1; }
    80%  { opacity: 0.8; }
    100% { top: 58px;  opacity: 0; }
}

/* === NAVBAR — hero page dark state === */
body.hero-page .navbar:not(.scrolled) .logo-text,
body.hero-page .navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.82);
}

body.hero-page .navbar:not(.scrolled) .nav-link:hover,
body.hero-page .navbar:not(.scrolled) .nav-link.active {
    color: #ffffff;
}

body.hero-page .navbar:not(.scrolled) .hamburger span {
    background: rgba(255, 255, 255, 0.8);
}

/* Nav underline: upgrade to gradient slide */
.nav-link::after {
    background: linear-gradient(90deg, #6C63FF, #38BDF8) !important;
    height: 1px !important;
    bottom: -4px !important;
    transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* === GLASSMORPHISM stats cards on dark hero === */
body.hero-page .stats {
    background: #080C17;
}

/* === RESPONSIVE HERO === */
@media (max-width: 1100px) {
    .hero-content .container {
        gap: 40px;
    }
    .threejs-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 860px) {
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-3d {
        order: -1;
    }

    .threejs-wrapper {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .hero-badge {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    .hero .hero-title {
        font-size: clamp(2.1rem, 8vw, 2.8rem);
    }

    .threejs-wrapper {
        max-width: 280px;
    }

    .hero-metrics {
        gap: 18px;
    }

    .btn-glow,
    .btn-ghost {
        padding: 13px 24px;
        font-size: 0.9rem;
    }
}

/* === Scroll reveal for below-fold sections === */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Preloader premium upgrade === */
.preloader {
    background: #0B0F1A !important;
}

.preloader-text {
    background: linear-gradient(135deg, #6C63FF 0%, #C084FC 55%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
}

.preloader-tagline {
    color: rgba(255,255,255,0.35) !important;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.loader-cube {
    filter: drop-shadow(0 0 20px rgba(108,99,255,0.5));
}

.cube-face {
    background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(0,212,255,0.08) 100%) !important;
    border-color: rgba(108,99,255,0.4) !important;
}

/* === Navbar premium scrolled state === */
body.hero-page .navbar.scrolled {
    background: rgba(11, 15, 26, 0.88) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(108,99,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

body.hero-page .navbar.scrolled .logo-text,
body.hero-page .navbar.scrolled .nav-link {
    color: rgba(255,255,255,0.82);
}

/* Scroll progress bar upgrade */
#scroll-progress-bar-premium {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #6C63FF, #C084FC, #38BDF8);
    z-index: 10002;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(108,99,255,0.7);
}

/* === Service/Portfolio cards — glassmorphism in dark mode === */
body.dark-mode .service-card,
body.dark-mode .portfolio-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(108,99,255,0.12);
    backdrop-filter: blur(8px);
}

body.dark-mode .service-card:hover,
body.dark-mode .portfolio-item:hover {
    border-color: rgba(108,99,255,0.28);
    box-shadow: 0 20px 60px rgba(108,99,255,0.12), 0 8px 24px rgba(0,0,0,0.4);
}

/* === Stats section dark polish === */
.stats {
    background: #080C17;
}

.stat-number {
    background: linear-gradient(135deg, #6C63FF 0%, #C084FC 55%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === CTA section upgrade === */
.cta {
    background: linear-gradient(135deg, #0f0a2a 0%, #150c35 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    color: #ffffff !important;
}

.cta-text {
    color: rgba(255,255,255,0.6) !important;
}

/* === Footer subtle upgrade === */
.footer {
    background: #060912;
    border-top: 1px solid rgba(108,99,255,0.08);
}

.social-links-large {
    display: flex;
    gap: 15px;
}

.social-links-large a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* === CONTACT FORM === */
.contact-form-wrapper {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* === MAP SECTION === */
.map-section {
    height: 420px;
    padding: 0 20px 40px;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.map-embed-wrap {
    position: relative;
    width: min(1200px, 100%);
    height: 100%;
    margin: 0 auto;
    border: 3px solid #111111;
    box-shadow: 8px 8px 0 #111111;
    overflow: hidden;
    background: #ffffff;
}

.map-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.1) contrast(1.05);
}

.map-chip {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffd60a;
    color: #111111;
    border: 2px solid #111111;
    box-shadow: 4px 4px 0 #111111;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.map-chip i {
    font-size: 0.95rem;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-info {
    text-align: center;
    color: var(--text-light);
}

.map-info i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.map-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .map-section {
        height: 340px;
        padding: 0 14px 28px;
    }

    .map-chip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 0.68rem;
        padding: 7px 10px;
        box-shadow: 3px 3px 0 #111111;
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-3d {
        order: -1;
    }
    
    .services-grid,
    .choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--light-bg);
        flex-direction: column;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .portfolio-grid,
    .testimonials-slider,
    .mv-grid,
    .choose-grid,
    .portfolio-grid-full {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .service-detail-card,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === UTILITIES === */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ================================================================
   NEO-BRUTALISM THEME OVERRIDE — 2026
   ================================================================ */

:root {
    --primary-color: #111111;
    --secondary-color: #ffd60a;
    --dark-bg: #f4f1ea;
    --light-bg: #f4f1ea;
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-gray: #333333;
    --border-color: #111111;
    --gradient-1: none;
    --gradient-2: none;
    --gradient-3: none;
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow-sm: 5px 5px 0 #111111;
    --shadow-md: 8px 8px 0 #111111;
    --shadow-lg: 12px 12px 0 #111111;
}

body,
body.dark-mode {
    background: #f4f1ea;
    color: #111111;
}

body.dark-mode {
    --light-bg: #f4f1ea;
    --dark-bg: #f4f1ea;
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-gray: #333333;
    --border-color: #111111;
}

.cursor,
.cursor-follower {
    mix-blend-mode: normal;
}

.preloader {
    background: #ffd60a !important;
}

.loader-cube,
.cube-face {
    display: none !important;
}

.loader-bars {
    width: 130px;
    margin: 0 auto 28px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.loader-bars span {
    width: 24px;
    height: 48px;
    background: #111111;
    border: 3px solid #111111;
    animation: brutal-bars 0.9s infinite alternate;
}

.loader-bars span:nth-child(2) { animation-delay: 0.15s; }
.loader-bars span:nth-child(3) { animation-delay: 0.3s; }

@keyframes brutal-bars {
    from { transform: translateY(0); }
    to { transform: translateY(-14px); }
}

.preloader-text {
    color: #111111;
    -webkit-text-fill-color: #111111;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.preloader-tagline {
    color: #111111 !important;
    font-style: normal;
    letter-spacing: 0.14em;
}

.navbar {
    background: #f4f1ea;
    border-bottom: 3px solid #111111;
    padding: 14px 0;
}

.navbar.scrolled,
body.hero-page .navbar.scrolled {
    background: #f4f1ea !important;
    box-shadow: 0 6px 0 #111111;
    border-bottom: 3px solid #111111;
}

.logo-r {
    color: #111111;
}

.logo-text,
.nav-link,
body.hero-page .navbar:not(.scrolled) .logo-text,
body.hero-page .navbar:not(.scrolled) .nav-link {
    color: #111111;
}

.nav-link::after {
    background: #111111 !important;
    height: 3px !important;
    bottom: -6px !important;
}

.switch {
    border: 3px solid #111111;
    box-shadow: 4px 4px 0 #111111;
}

.hero,
body.dark-mode .hero {
    background: #f4f1ea !important;
    padding-top: 40px;
}

.brutal-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#111111 2px, transparent 2px), linear-gradient(90deg, #111111 2px, transparent 2px);
    background-size: 46px 46px;
    opacity: 0.08;
    pointer-events: none;
}

#particle-canvas,
.hero-glow,
.hero-3d,
.threejs-wrapper,
#hero-canvas,
.canvas-glow {
    display: none !important;
}

.hero-content {
    padding-top: 50px;
}

.hero-content .container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
}

.hero-badge {
    border: 3px solid #111111;
    border-radius: 0;
    background: #00bbf9;
    color: #111111;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 6px 6px 0 #111111;
    padding: 10px 18px;
}

.hero-badge::before {
    display: none;
}

.hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #111111 !important;
}

.hero .hero-title .title-line,
.hero .hero-title .gradient-text {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    background: none !important;
}

.hero .hero-title .brutal-accent {
    display: inline;
    background: #ff4d6d !important;
    -webkit-text-fill-color: #111111 !important;
    color: #111111 !important;
    padding: 0 8px;
    box-decoration-break: clone;
}

.hero .hero-subtitle {
    color: #111111;
    font-size: 1.1rem;
    max-width: 560px;
    font-weight: 500;
}

.hero-buttons {
    gap: 14px;
}

.brutal-btn,
.btn-primary,
.btn-white {
    border-radius: 0 !important;
    border: 3px solid #111111;
    background: #111111 !important;
    color: #ffffff !important;
    box-shadow: 7px 7px 0 #ffd60a;
    transform: translate(0, 0);
}

.brutal-btn-secondary,
.btn-secondary,
.btn-ghost {
    border-radius: 0 !important;
    border: 3px solid #111111;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 7px 7px 0 #00bbf9;
    transform: translate(0, 0);
}

.btn:hover,
.brutal-btn:hover,
.brutal-btn-secondary:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover {
    transform: translate(4px, 4px) !important;
    box-shadow: 3px 3px 0 #111111 !important;
}

.hero-metrics {
    margin-top: 34px;
    padding: 16px;
    border: 3px solid #111111;
    box-shadow: 7px 7px 0 #ff4d6d;
    background: #ffffff;
}

.metric-num,
.metric-label {
    color: #111111;
}

.metric-divider {
    background: #111111;
    width: 2px;
}

.hero-panel {
    display: grid;
    gap: 14px;
    align-self: stretch;
}

.panel-card {
    border: 3px solid #111111;
    box-shadow: 8px 8px 0 #111111;
    padding: 24px;
}

.panel-main {
    background: #00bbf9;
}

.panel-sub {
    background: #ffd60a;
}

.panel-card p {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 700;
}

.panel-main h3,
.panel-sub h4 {
    font-size: 1.8rem;
    line-height: 1.1;
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-tags span {
    border: 2px solid #111111;
    background: #ffffff;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero .scroll-indicator {
    color: #111111;
}

.scroll-line {
    background: #111111;
    width: 3px;
}

.scroll-dot {
    background: #ff4d6d;
    box-shadow: none;
}

.stats,
body.hero-page .stats,
.services-preview,
.portfolio-preview,
.testimonials,
.cta,
.footer,
.about-story,
.mission-vision,
.team,
.why-choose,
.services-detail,
.portfolio-section,
.contact-section,
.process {
    background: #f4f1ea !important;
}

.section-title,
.section-subtitle,
.service-card h3,
.portfolio-content h3,
.testimonial-text,
.footer,
.footer-col p,
.footer-col h4,
.footer-bottom p,
.cta-title,
.cta-text {
    color: #111111 !important;
}

.stats-grid .stat-item,
.service-card,
.portfolio-item,
.testimonial-card,
.mv-card,
.choose-item,
.contact-form-wrapper,
.process-step,
.service-detail-card,
.team-member {
    border: 3px solid #111111 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 8px 8px 0 #111111 !important;
}

.service-card:hover,
.portfolio-item:hover,
.testimonial-card:hover,
.mv-card:hover,
.choose-item:hover,
.team-member:hover {
    transform: translate(5px, 5px) !important;
    box-shadow: 3px 3px 0 #111111 !important;
}

.service-link {
    background: #ffd60a;
    border: 2px solid #111111;
    padding: 6px 10px;
    font-weight: 700;
}

.portfolio-tags span {
    border: 2px solid #111111;
    border-radius: 0;
    background: #00bbf9;
    color: #111111;
    font-weight: 700;
}

.author-avatar,
.service-icon,
.stat-icon,
.mv-icon,
.contact-icon,
.social-links a,
.social-links-large a {
    border: 2px solid #111111;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 #111111;
    background: #ffffff !important;
    color: #111111 !important;
}

.contact-form-wrapper,
.form-group input,
.form-group select,
.form-group textarea {
    border: 3px solid #111111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid #00bbf9;
    border-color: #111111;
}

#scroll-progress-bar-premium {
    background: #111111;
    height: 4px;
    box-shadow: none;
}

body.dark-mode .service-card,
body.dark-mode .portfolio-item,
body.dark-mode .portfolio-item-full,
body.dark-mode .testimonial-card,
body.dark-mode .mv-card,
body.dark-mode .choose-item,
body.dark-mode .contact-form-wrapper,
body.dark-mode .stats-grid .stat-item {
    background: #ffffff !important;
    border-color: #111111 !important;
}

@media (max-width: 1024px) {
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-panel {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        background: #f4f1ea;
        border-top: 3px solid #111111;
    }

    .hero .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-metrics {
        gap: 16px;
        flex-wrap: wrap;
    }

    .panel-main h3,
    .panel-sub h4 {
        font-size: 1.35rem;
    }
}

/* ================================================================
   NEO-BRUTAL TYPOGRAPHY PASS — Editorial Scale & Rhythm
   ================================================================ */

body {
    letter-spacing: -0.01em;
    text-rendering: geometricPrecision;
}

.logo {
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-r {
    font-size: 2.1rem;
    line-height: 0.9;
}

.logo-text {
    font-size: 2rem;
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: lowercase;
}

.nav-menu {
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero .hero-title {
    max-width: 760px;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(2.8rem, 7.4vw, 6.7rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
}

.hero .hero-subtitle {
    max-width: 640px;
    font-size: 1.06rem;
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.hero-badge {
    font-size: 0.68rem;
    font-weight: 900;
}

.brutal-btn,
.brutal-btn-secondary,
.btn-primary,
.btn-secondary {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-height: 54px;
}

.hero-metrics {
    margin-top: 30px;
    gap: 22px;
}

.metric-num {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: -0.03em;
}

.metric-label {
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-header {
    margin-bottom: 44px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4.2vw, 4.8rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.service-card h3,
.portfolio-content h3,
.mv-card h3,
.choose-item h3,
.cta-title,
.page-title {
    font-family: var(--font-primary);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-transform: uppercase;
}

.service-card p,
.portfolio-content p,
.testimonial-text,
.about-text p,
.cta-text,
.footer-col p {
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.service-link,
.portfolio-tags span,
.footer-col ul li a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 900;
}

.panel-main h3,
.panel-sub h4 {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.1vw, 2.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.panel-tags span {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    font-weight: 900;
}

.btn,
.service-card,
.portfolio-item,
.testimonial-card,
.mv-card,
.choose-item,
.contact-form-wrapper,
.panel-card,
.hero-metrics,
.stats-grid .stat-item {
    transition: transform 0.15s steps(2, end), box-shadow 0.15s steps(2, end);
}

@media (max-width: 1100px) {
    .logo-text {
        font-size: 1.6rem;
    }

    .hero .hero-title {
        font-size: clamp(2.6rem, 9vw, 5.2rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 3.6rem);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero .hero-title {
        font-size: clamp(2.1rem, 14vw, 3.7rem);
        line-height: 0.9;
    }

    .hero .hero-subtitle {
        font-size: 0.96rem;
        max-width: 100%;
    }

    .metric-num {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 10vw, 2.7rem);
    }

    .section-subtitle {
        font-size: 0.92rem;
    }
}

/* ================================================================
   NEO-BRUTAL COLOR BLOCK PASS — Section Identity
   ================================================================ */

.stats {
    background: #ffd60a !important;
    border-top: 4px solid #111111;
    border-bottom: 4px solid #111111;
}

.services-preview {
    background: #f4f1ea !important;
    position: relative;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background: repeating-linear-gradient(90deg, #111111 0 20px, #ff4d6d 20px 40px);
}

.portfolio-preview {
    background: #00bbf9 !important;
    border-top: 4px solid #111111;
    border-bottom: 4px solid #111111;
}

.testimonials {
    background: #ff4d6d !important;
    border-top: 4px solid #111111;
    border-bottom: 4px solid #111111;
}

.cta {
    background: #111111 !important;
    border-top: 4px solid #111111;
    border-bottom: 4px solid #111111;
}

.cta-title,
.cta-text {
    color: #ffffff !important;
}

.cta .btn,
.cta .btn-white {
    background: #ffd60a !important;
    color: #111111 !important;
    box-shadow: 7px 7px 0 #00bbf9;
}

.footer {
    background: #f4f1ea !important;
    border-top: 6px solid #111111;
}

/* Section label chips */
.stats .section-title,
.services-preview .section-title,
.portfolio-preview .section-title,
.testimonials .section-title,
.cta .cta-title {
    display: inline-block;
    padding: 6px 12px;
    border: 3px solid #111111;
    box-shadow: 5px 5px 0 #111111;
    background: #ffffff;
}

.portfolio-preview .section-title {
    background: #ffd60a;
}

.testimonials .section-title {
    background: #00bbf9;
}

.stats .section-title,
.stats .stat-label,
.stats .stat-item,
.portfolio-preview .section-subtitle,
.testimonials .section-subtitle {
    color: #111111 !important;
}

/* Alternating accent shadows for card groups */
.services-grid .service-card:nth-child(3n + 1),
.portfolio-grid .portfolio-item:nth-child(3n + 1),
.testimonials-slider .testimonial-card:nth-child(3n + 1) {
    box-shadow: 8px 8px 0 #ff4d6d !important;
}

.services-grid .service-card:nth-child(3n + 2),
.portfolio-grid .portfolio-item:nth-child(3n + 2),
.testimonials-slider .testimonial-card:nth-child(3n + 2) {
    box-shadow: 8px 8px 0 #00bbf9 !important;
}

.services-grid .service-card:nth-child(3n),
.portfolio-grid .portfolio-item:nth-child(3n),
.testimonials-slider .testimonial-card:nth-child(3n) {
    box-shadow: 8px 8px 0 #ffd60a !important;
}

.services-grid .service-card:hover,
.portfolio-grid .portfolio-item:hover,
.testimonials-slider .testimonial-card:hover {
    box-shadow: 3px 3px 0 #111111 !important;
}

/* Icon color blocks */
.services-grid .service-card .service-icon,
.stats-grid .stat-icon,
.testimonials-slider .author-avatar {
    background: #ffd60a !important;
}

.portfolio-preview .portfolio-tags span {
    background: #ffffff;
}

/* Brutalist divider tape effect */
.services-preview .container,
.portfolio-preview .container,
.testimonials .container {
    position: relative;
}

.services-preview .container::after,
.portfolio-preview .container::after,
.testimonials .container::after {
    content: '';
    position: absolute;
    right: 0;
    top: -30px;
    width: 92px;
    height: 24px;
    border: 3px solid #111111;
    background: #f4f1ea;
    transform: rotate(-6deg);
}

.portfolio-preview .container::after {
    background: #ffd60a;
}

.testimonials .container::after {
    background: #00bbf9;
}

@media (max-width: 768px) {
    .services-preview::before {
        height: 14px;
    }

    .services-preview .container::after,
    .portfolio-preview .container::after,
    .testimonials .container::after {
        width: 68px;
        height: 18px;
        top: -20px;
        right: 8px;
    }
}

/* ================================================================
   NEO-BRUTAL CONTRAST HOTFIX
   ================================================================ */

/* Keep CTA heading readable inside white chip */
.cta .cta-title {
    color: #111111 !important;
}

/* Keep CTA paragraph readable on black section */
.cta .cta-text {
    color: #ffffff !important;
}

/* Prevent transparent text leftovers from old gradient styles */
.stat-number,
.page-title,
.hero .hero-title .title-line,
.hero .hero-title .gradient-text,
.preloader-text {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Safety contrast for section subtitles and footer links */
.section-subtitle,
.footer-col ul li a,
.footer-tagline,
.breadcrumb,
.breadcrumb a {
    color: #111111 !important;
}

/* ================================================================
    INNER PAGE HEADER VISUAL FIX (About / Services / Portfolio / Contact)
    ================================================================ */

.about-page .page-header,
.services-page .page-header,
.portfolio-page .page-header,
.contact-page .page-header {
    position: relative;
    overflow: hidden;
    padding: 138px 0 78px;
    border-top: 3px solid #111111;
    border-bottom: 3px solid #111111;
}

.about-page .page-header {
    background: #ffd60a !important;
}

.services-page .page-header {
    background: #00bbf9 !important;
}

.portfolio-page .page-header {
    background: #ff4d6d !important;
}

.contact-page .page-header {
    background: #f4f1ea !important;
}

.about-page .page-header::before,
.services-page .page-header::before,
.portfolio-page .page-header::before,
.contact-page .page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#111111 2px, transparent 2px), linear-gradient(90deg, #111111 2px, transparent 2px);
    background-size: 44px 44px;
    opacity: 0.08;
    pointer-events: none;
}

.about-page .page-header .container,
.services-page .page-header .container,
.portfolio-page .page-header .container,
.contact-page .page-header .container {
    position: relative;
    z-index: 1;
}

.about-page .page-title,
.services-page .page-title,
.portfolio-page .page-title,
.contact-page .page-title {
    color: #111111 !important;
    background: #ffffff;
    border: 3px solid #111111;
    box-shadow: 6px 6px 0 #111111;
    display: inline-block;
    padding: 8px 14px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.about-page .page-subtitle,
.services-page .page-subtitle,
.portfolio-page .page-subtitle,
.contact-page .page-subtitle,
.about-page .breadcrumb,
.services-page .breadcrumb,
.portfolio-page .breadcrumb,
.contact-page .breadcrumb,
.about-page .breadcrumb a,
.services-page .breadcrumb a,
.portfolio-page .breadcrumb a,
.contact-page .breadcrumb a {
    color: #111111 !important;
    opacity: 1;
}

@media (max-width: 768px) {
    .about-page .page-header,
    .services-page .page-header,
    .portfolio-page .page-header,
    .contact-page .page-header {
        padding: 114px 0 58px;
    }

    .about-page .page-title,
    .services-page .page-title,
    .portfolio-page .page-title,
    .contact-page .page-title {
        font-size: clamp(1.6rem, 8.2vw, 2.4rem);
        box-shadow: 4px 4px 0 #111111;
    }
}

/* ================================================================
   LANDING OVERLAP & COMPRESSION FIX
   ================================================================ */

/* Keep first screen compact and prevent hero content from dropping too far down */
body.hero-page .hero {
    min-height: auto !important;
    padding: 132px 0 64px;
}

body.hero-page .hero-content {
    padding-top: 0 !important;
    padding-bottom: 88px;
}

body.hero-page .hero-content .container {
    gap: 32px;
    align-items: start;
}

body.hero-page .hero-panel {
    margin-top: 0;
}

/* Move scroll indicator lower and remove interaction overlap */
body.hero-page .hero .scroll-indicator {
    bottom: 14px;
    pointer-events: none;
}

/* Compress section spacing to feel more single-flow */
body.hero-page .stats,
body.hero-page .services-preview,
body.hero-page .portfolio-preview,
body.hero-page .testimonials,
body.hero-page .cta {
    padding-top: 72px;
    padding-bottom: 72px;
}

body.hero-page .section-header {
    margin-bottom: 34px;
}

@media (max-width: 1100px) {
    body.hero-page .hero {
        padding: 116px 0 52px;
    }

    body.hero-page .hero-content {
        padding-bottom: 52px;
    }

    /* Prevent overlap on tablet where hero stacks */
    body.hero-page .hero .scroll-indicator {
        display: none;
    }

    body.hero-page .hero .hero-title {
        font-size: clamp(2.2rem, 9.5vw, 4.2rem);
    }
}

@media (max-width: 768px) {
    body.hero-page .hero {
        padding: 104px 0 40px;
    }

    body.hero-page .hero-content {
        padding-bottom: 24px;
    }

    body.hero-page .stats,
    body.hero-page .services-preview,
    body.hero-page .portfolio-preview,
    body.hero-page .testimonials,
    body.hero-page .cta {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

/* ================================================================
   LANDING SHORTEN + HERO COMPACT HOTFIX
   ================================================================ */

/* 1) Compact hero so first fold is tighter */
body.hero-page .hero {
    padding: 110px 0 44px;
}

body.hero-page .hero .hero-title {
    font-size: clamp(2rem, 5.4vw, 4.5rem);
    line-height: 0.9;
    margin-bottom: 14px;
}

body.hero-page .hero .hero-subtitle {
    font-size: 0.93rem;
    line-height: 1.35;
    max-width: 560px;
    margin-bottom: 20px;
}

body.hero-page .hero-metrics {
    margin-top: 16px;
    padding: 10px 12px;
    gap: 14px;
}

/* 2) Reduce extra space in blue/yellow right cards */
body.hero-page .panel-card {
    padding: 14px 16px;
}

body.hero-page .panel-main,
body.hero-page .panel-sub {
    min-height: 96px;
}

body.hero-page .panel-card p {
    margin-bottom: 4px;
    font-size: 0.62rem;
}

body.hero-page .panel-main h3,
body.hero-page .panel-sub h4 {
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 0.98;
}

/* 3) Improve the three tag boxes so they are not plain */
body.hero-page .panel-tags {
    gap: 8px;
}

body.hero-page .panel-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

body.hero-page .panel-tags span::before {
    content: '+';
    font-weight: 900;
}

body.hero-page .panel-tags span:nth-child(1) {
    background: #ffffff;
}

body.hero-page .panel-tags span:nth-child(2) {
    background: #ffd60a;
}

body.hero-page .panel-tags span:nth-child(3) {
    background: #00bbf9;
}

/* 4) Shorten whole landing page by reducing visible blocks on home */
body.hero-page .stats,
body.hero-page .services-preview,
body.hero-page .portfolio-preview,
body.hero-page .testimonials,
body.hero-page .cta {
    padding-top: 46px;
    padding-bottom: 46px;
}

body.hero-page .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

body.hero-page .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Show fewer cards on landing to keep page length controlled */
body.hero-page .services-grid .service-card:nth-child(n + 5) {
    display: none;
}

body.hero-page .testimonials-slider .testimonial-card:nth-child(n + 3) {
    display: none;
}

body.hero-page .hero .scroll-indicator {
    display: none;
}

@media (max-width: 768px) {
    body.hero-page .hero {
        padding: 96px 0 28px;
    }

    body.hero-page .hero .hero-title {
        font-size: clamp(1.8rem, 11vw, 3rem);
    }

    body.hero-page .services-grid,
    body.hero-page .testimonials-slider {
        grid-template-columns: 1fr;
    }

    body.hero-page .services-grid .service-card:nth-child(n + 4) {
        display: none;
    }
}

/* ================================================================
   SERVICES PAGE CARD FIX — Overflow + Image Fit
   ================================================================ */

body.services-page .services-detail .container {
    max-width: 1240px;
}

body.services-page .service-detail-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 52px;
    padding: 18px;
}

body.services-page .service-detail-content {
    min-width: 0;
    padding: 6px 2px;
}

body.services-page .service-detail-content h2 {
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
    line-height: 1.05;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

body.services-page .service-detail-content p,
body.services-page .service-features li,
body.services-page .tech-stack span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.services-page .service-detail-content p {
    font-size: 0.96rem;
    line-height: 1.45;
    margin-bottom: 16px;
}

body.services-page .service-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 16px;
}

body.services-page .service-features li {
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.35;
}

body.services-page .tech-stack {
    gap: 8px;
}

body.services-page .tech-stack span {
    font-size: 0.72rem;
    padding: 6px 10px;
    max-width: 100%;
}

/* Force image to fit card perfectly and respect square neo-brutal corners */
body.services-page .service-detail-image {
    min-width: 0;
    height: 100%;
    border: 3px solid #111111;
    overflow: hidden;
    box-shadow: 6px 6px 0 #111111;
    background: #ffffff;
}

body.services-page .service-detail-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    object-fit: cover !important;
    object-position: center;
    border-radius: 0 !important;
}

@media (max-width: 1024px) {
    body.services-page .service-detail-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 14px;
    }

    body.services-page .service-detail-card.reverse {
        direction: ltr;
    }

    body.services-page .service-detail-image img {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    body.services-page .service-detail-content h2 {
        font-size: 1.35rem;
    }

    body.services-page .service-features {
        grid-template-columns: 1fr;
    }

    body.services-page .service-detail-image img {
        min-height: 220px;
    }
}

/* ================================================================
   ABOUT PAGE TEAM SECTION IMPROVEMENT
   ================================================================ */

body.about-page .team {
    padding-top: 76px;
    padding-bottom: 76px;
}

body.about-page .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body.about-page .team-member {
    text-align: left;
    padding: 12px;
}

body.about-page .member-image {
    border: 3px solid #111111;
    overflow: hidden;
    box-shadow: 6px 6px 0 #111111;
    margin-bottom: 14px;
}

body.about-page .member-image img {
    display: block;
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 0 !important;
}

body.about-page .member-placeholder {
    height: 230px;
    border-radius: 0 !important;
}

body.about-page .member-social {
    opacity: 1;
    bottom: 12px;
}

body.about-page .team-member h3 {
    margin-bottom: 6px;
    font-size: clamp(0.96rem, 1.1vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

body.about-page .member-role {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    color: #111111;
}

body.about-page .member-bio {
    font-size: 0.82rem;
    line-height: 1.34;
    color: #111111;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1200px) {
    body.about-page .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.about-page .member-image img,
    body.about-page .member-placeholder {
        height: 280px !important;
    }
}

@media (max-width: 900px) {
    body.about-page .team-grid {
        grid-template-columns: 1fr;
    }

    body.about-page .member-image img,
    body.about-page .member-placeholder {
        height: 280px !important;
    }
}

/* ================================================================
   FREE TOOLS + NARAZEN AI (ANCIENT THEME)
   ================================================================ */

.tools-fab-wrapper {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.tools-fab-btn {
    border: 3px solid #3e1f0d;
    background: linear-gradient(135deg, #f8cc75 0%, #e09f3e 100%);
    color: #3e1f0d;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 5px 5px 0 #3e1f0d;
    font-size: 0.75rem;
}

.tools-fab-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #3e1f0d;
}

.tools-panel {
    width: 260px;
    border: 3px solid #3e1f0d;
    box-shadow: 7px 7px 0 #3e1f0d;
    background: linear-gradient(180deg, #fff2dc 0%, #fce2b1 100%);
    padding: 10px;
    display: none;
}

.tools-panel.open {
    display: block;
}

.tools-panel-head {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #5a2e13;
    padding: 2px 4px 8px;
    letter-spacing: 0.08em;
}

.tools-tool-btn {
    width: 100%;
    text-align: left;
    border: 2px solid #5a2e13;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #5a2e13;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tools-tool-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #5a2e13;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: #3e1f0d;
}

.tool-desc {
    font-size: 0.74rem;
    color: #5a2e13;
    font-weight: 700;
}

.narazen-modal {
    position: fixed;
    inset: 0;
    background: rgba(37, 17, 7, 0.54);
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.narazen-modal.open {
    display: flex;
}

.narazen-shell {
    width: min(840px, 100%);
    height: min(76vh, 780px);
    border: 3px solid #4d220e;
    box-shadow: 10px 10px 0 #4d220e;
    background: linear-gradient(180deg, #fff7ea 0%, #f8e3bf 100%);
    display: grid;
    grid-template-rows: auto auto 1fr;
    overflow: hidden;
    position: relative;
}

.narazen-shell::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(78, 34, 14, 0.16);
    pointer-events: none;
}

.narazen-modal.fullscreen .narazen-shell {
    width: 100%;
    height: 100%;
    max-width: none;
    box-shadow: none;
}

.narazen-header {
    padding: 12px;
    border-bottom: 2px solid #4d220e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #f4c261 0%, #e76f51 100%);
    position: relative;
    z-index: 2;
}

.narazen-title {
    margin: 0;
    color: #2f1509;
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.narazen-subtitle {
    margin: 4px 0 0;
    color: #3f1e10;
    font-size: 0.76rem;
    font-weight: 700;
}

.narazen-actions {
    display: flex;
    gap: 8px;
}

.narazen-fullscreen,
.narazen-close,
.narazen-key-save,
.narazen-send {
    border: 2px solid #3f1e10;
    background: #fff;
    color: #3f1e10;
    font-weight: 800;
    padding: 8px 10px;
    cursor: pointer;
    box-shadow: 3px 3px 0 #3f1e10;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.narazen-close {
    width: 40px;
    text-align: center;
}

.narazen-fullscreen:hover,
.narazen-close:hover,
.narazen-key-save:hover,
.narazen-send:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #3f1e10;
}

.narazen-key-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 2px solid #4d220e;
    background: #ffe8c2;
}

.narazen-key-status {
    min-height: 22px;
    padding: 4px 12px 8px;
    border-bottom: 2px solid #4d220e;
    background: #ffe8c2;
    font-size: 0.74rem;
    font-weight: 700;
    color: #5f3017;
}

.narazen-key-status.success {
    color: #1f5a2c;
}

.narazen-key-status.error {
    color: #8b1e1e;
}

.narazen-key-status.warn {
    color: #7a4b0b;
}

.narazen-key-input,
.narazen-input {
    width: 100%;
    border: 2px solid #4d220e;
    background: #fffdf7;
    color: #2d160b;
    padding: 9px 10px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    resize: none;
}

.narazen-body {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.narazen-chat {
    overflow: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.narazen-msg {
    max-width: min(88%, 700px);
    border: 2px solid #4d220e;
    padding: 9px 10px;
    box-shadow: 3px 3px 0 #4d220e;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.narazen-msg.assistant {
    background: #fff;
    color: #30170b;
}

.narazen-msg.user {
    margin-left: auto;
    background: #f4c261;
    color: #2c1408;
}

.narazen-msg.pending {
    opacity: 0.8;
}

.narazen-composer {
    border-top: 2px solid #4d220e;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    background: #ffe8c2;
}

@media (max-width: 768px) {
    .tools-fab-wrapper {
        right: 12px;
        bottom: 12px;
    }

    .tools-fab-btn {
        font-size: 0.68rem;
        padding: 10px 12px;
    }

    .tools-panel {
        width: min(280px, calc(100vw - 26px));
    }

    .narazen-shell {
        height: min(88vh, 760px);
    }

    .narazen-title {
        font-size: 1rem;
    }

    .narazen-subtitle {
        display: none;
    }

    .narazen-key-row,
    .narazen-composer {
        grid-template-columns: 1fr;
    }

}

/* ================================================================
   LANDING POLISH PASS — Content Readability & Layout Rhythm
   ================================================================ */

.hero-content .container {
    align-items: start;
}

.hero-text {
    max-width: 760px;
}

.hero-buttons {
    margin-top: 8px;
}

.hero-panel {
    margin-top: 18px;
}

.panel-main,
.panel-sub {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-card p {
    opacity: 0.85;
}

.stats-grid {
    gap: 24px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
}

.stat-label {
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-header {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid,
.portfolio-grid,
.testimonials-slider {
    gap: 24px;
}

.service-card,
.portfolio-item,
.testimonial-card {
    padding: 30px 24px;
}

.service-card p,
.portfolio-content p,
.testimonial-text {
    font-size: 0.98rem;
}

.portfolio-content {
    padding: 20px;
}

.cta-content {
    max-width: 820px;
}

.cta .btn-white {
    min-width: 260px;
}

@media (max-width: 1024px) {
    .hero-panel {
        margin-top: 6px;
    }

    .panel-main,
    .panel-sub {
        min-height: 132px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 36px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        gap: 14px;
    }

    .service-card,
    .portfolio-item,
    .testimonial-card {
        padding: 22px 18px;
    }
}
