/* ============================================
   RINCETECH - Services Page Stylesheet
   White Theme with Dark Red (#8B0000) Accents
   ============================================ */

/* CSS Variables */
:root {
    --primary: #8B0000;
    --primary-dark: #6B0000;
    --primary-light: #A50000;
    --primary-rgb: 139, 0, 0;
    
    --black: #0A0A0A;
    --dark: #1A1A1A;
    --gray-dark: #333;
    --gray: #666;
    --gray-light: #999;
    --border: #E0E0E0;
    --light: #F5F5F5;
    --white: #FFFFFF;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 30px rgba(139,0,0,0.25);
    
    --transition: 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    z-index: 9999;
}
.skip-link:focus { top: 20px; }

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 8px 16px;
    background: rgba(139,0,0,0.08);
    border: 1px solid rgba(139,0,0,0.2);
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--black);
}
.section-desc {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-icon { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-icon-left { width: 18px; height: 18px; margin-right: 4px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(139,0,0,0.35); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}
.header.hidden { transform: translateY(-100%); }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}
.logo:hover { background: rgba(139,0,0,0.05); }
.logo:active { transform: scale(0.98); }
.logo-img { height: 42px; width: auto; }
.logo-text {
    display: none;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
}
.logo-accent { color: var(--primary); }

/* Navigation */
.nav { display: none; }
.nav-list { display: flex; gap: 36px; }
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
    padding: 8px 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { display: none; }

/* Mobile Toggle */
.mobile-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
}
.hamburger {
    width: 26px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-toggle.is-active .hamburger { background: transparent; }
.mobile-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--primary);
}
.mobile-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--primary);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: var(--transition);
}
.mobile-overlay.is-visible { opacity: 1; visibility: visible; }

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 100px 32px 40px;
    transition: right 0.4s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { right: 0; }

.mobile-nav-list { margin-bottom: 40px; }
.mobile-nav-link {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--primary); }

.mobile-nav-contact { display: flex; flex-direction: column; gap: 12px; }
.mobile-contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--light);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}
.mobile-contact-btn svg { width: 20px; height: 20px; stroke: var(--primary); }
.mobile-contact-btn:hover { background: rgba(139,0,0,0.08); color: var(--primary); }

@media (min-width: 1024px) {
    .nav { display: block; }
    .header-cta { display: inline-flex; }
    .mobile-toggle { display: none; }
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--white);
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.page-hero .hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(139,0,0,0.06) 0%, transparent 70%);
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 24px;
}
.breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}
.breadcrumb li { display: flex; align-items: center; gap: 12px; }
.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--gray-light);
}
.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); font-weight: 600; }

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--black);
}

.page-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.overview-grid {
    display: grid;
    gap: 24px;
    text-align: center;
}

.overview-stat {
    padding: 24px;
    opacity: 0;
    transform: translateY(20px);
}
.overview-stat.visible {
    animation: fadeUp 0.5s ease forwards;
}

.overview-stat .stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.overview-stat .stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
}

@media (min-width: 768px) {
    .overview-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   SERVICE DETAIL SECTIONS
   ============================================ */
.service-detail {
    padding: 100px 0;
    background: var(--white);
}

.service-detail.alt-bg {
    background: var(--light);
}

.service-detail-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}

.service-detail-content {
    opacity: 0;
    transform: translateY(30px);
}
.service-detail-content.visible {
    animation: fadeUp 0.6s ease forwards;
}

.service-detail-content .section-tag { margin-bottom: 16px; }
.service-detail-content .section-title { text-align: left; margin-bottom: 20px; }

.service-detail-desc {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.8;
}

/* Service Features Grid */
.service-features-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.service-feature {
    display: flex;
    gap: 16px;
}

.service-feature .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,0,0,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-feature:hover .feature-icon {
    background: var(--primary);
}

.service-feature .feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    transition: var(--transition);
}

.service-feature:hover .feature-icon svg {
    stroke: var(--white);
}

.service-feature h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--black);
}

.service-feature p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Service Tech Tags */
.service-tech {
    margin-bottom: 32px;
}

.tech-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    padding: 8px 16px;
    background: rgba(139,0,0,0.08);
    border: 1px solid rgba(139,0,0,0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}

.tech-tags span:hover {
    background: var(--primary);
    color: var(--white);
}

/* Service Visual */
.service-detail-visual {
    display: none;
    position: relative;
    height: 350px;
    opacity: 0;
    transform: translateY(30px);
}
.service-detail-visual.visible {
    animation: fadeUp 0.6s ease 0.2s forwards;
}

.service-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large svg {
    width: 100px;
    height: 100px;
    stroke: var(--primary);
    position: relative;
    z-index: 2;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(139,0,0,0.2);
    border-radius: 50%;
}

.icon-ring.ring-1 {
    width: 180px;
    height: 180px;
    animation: rotate 15s linear infinite;
}

.icon-ring.ring-2 {
    width: 250px;
    height: 250px;
    animation: rotate 20s linear infinite reverse;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .service-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .service-detail-grid { grid-template-columns: 1fr 1fr; }
    .service-detail-grid.reverse { direction: rtl; }
    .service-detail-grid.reverse > * { direction: ltr; }
    .service-detail-visual { display: block; }
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    padding: 100px 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    gap: 24px;
}

.process-step {
    padding: 32px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.process-step.visible {
    animation: fadeUp 0.5s ease forwards;
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.process-number {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.process-step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .process-grid { grid-template-columns: repeat(6, 1fr); }
    .process-step { padding: 24px 16px; }
    .process-number { font-size: 28px; }
    .process-step h3 { font-size: 15px; }
    .process-step p { font-size: 13px; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; }
.cta-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.cta-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}
.cta-title span { color: var(--white); }

.cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons { flex-direction: row; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-flex;
}
.footer-logo .logo-img { filter: brightness(0) invert(1); }
.footer-logo .logo-text { color: var(--white); }

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; fill: var(--white); }
.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.social-link.whatsapp:hover { background: #25D366; border-color: #25D366; }

.footer-links h4, .footer-contact h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 8px; }

.footer-contact address { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.contact-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    margin-top: 2px;
}
.contact-item a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.footer-legal {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.footer-legal a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.footer-legal a:hover { color: var(--primary); }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

/* ============================================
   UTILITIES
   ============================================ */
::selection { background: var(--primary); color: var(--white); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}