/* Additional Custom Styles for Marble Sync Website */
/* Main styles are in css/ directory (variables.css, reset.css, main.css, components.css, animations.css) */

/* This file is kept for backward compatibility and custom overrides */

/* ===================================
   Section Components
   =================================== */

/* ===================================
   Section V2 Shared Styles
   =================================== */

/* Section tag / eyebrow */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #ff8800;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: #ff8800;
}

.section-header-v2 {
    margin-bottom: 3.5rem;
}

.section-header-v2 h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a202c;
    margin-bottom: 1rem;
}

.text-orange {
    color: #ff8800;
}

.section-desc {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 560px;
    line-height: 1.7;
}

/* Dark alternate sections */
.section-dark-alt {
    background: linear-gradient(155deg, #0f172a 0%, #151d30 50%, #0f172a 100%) !important;
    color: #e2e8f0;
}

.section-dark-alt .section-header-v2 h2 {
    color: #ffffff;
}

.section-dark-alt .section-desc {
    color: #94a3b8;
}

/* ===================================
   About Section V2
   =================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-lead {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-story p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-story strong {
    color: #f1f5f9;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pillar-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    background: rgba(255,136,0,0.06);
    border-color: rgba(255,136,0,0.2);
}

.pillar-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,136,0,0.12);
    border-radius: 10px;
    color: #ff8800;
}

.pillar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Industry tags row */
.industry-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.industry-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.industry-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ind-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255,136,0,0.1);
    border: 1px solid rgba(255,136,0,0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff8800;
}

.ind-tag i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .section-header-v2 h2 {
        font-size: 2rem;
    }
}

/* ===================================
   Why Us Section V2
   =================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.why-card:hover {
    border-color: #ff8800;
    box-shadow: 0 8px 30px rgba(255,136,0,0.1);
    transform: translateY(-4px);
}

.why-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0,0,0,0.04);
    line-height: 1;
}

.why-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 12px;
    color: #ea580c;
    margin-bottom: 1.25rem;
}

.why-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Services Section V2
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.svc-card {
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.svc-card:hover {
    background: rgba(255,136,0,0.06);
    border-color: rgba(255,136,0,0.25);
    transform: translateY(-4px);
}

.svc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,136,0,0.12);
    border-radius: 10px;
    color: #ff8800;
    margin-bottom: 1.25rem;
}

.svc-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.svc-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Projects Section V2
   =================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.proj-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.proj-card:hover {
    border-color: #ff8800;
    box-shadow: 0 8px 30px rgba(255,136,0,0.1);
    transform: translateY(-4px);
}

.proj-thumb {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f172a 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.proj-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,136,0,0.15);
    border-radius: 12px;
    color: #ff8800;
}

.proj-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

.proj-body {
    padding: 1.5rem 2rem 2rem;
}

.proj-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.proj-body p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Team Section V2
   =================================== */

.expertise-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.expertise-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.expertise-tile:hover {
    background: rgba(255,136,0,0.06);
    border-color: rgba(255,136,0,0.2);
    transform: translateY(-3px);
}

.expertise-tile i,
.expertise-tile svg {
    flex-shrink: 0;
    color: #ff8800;
}

.expertise-tile span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .expertise-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .expertise-tiles {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Tech Stack Section
   =================================== */

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

.stack-group {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.stack-group:hover {
    border-color: #ff8800;
    box-shadow: 0 4px 20px rgba(255,136,0,0.08);
}

.stack-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff8800;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-chip {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.stack-chip:hover {
    background: #fff7ed;
    border-color: #ff8800;
    color: #ea580c;
}

/* ===================================
   Contact Section V2
   =================================== */

.contact-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.contact-text h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-text > p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cd-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cd-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,136,0,0.12);
    border-radius: 10px;
    color: #ff8800;
}

.cd-row strong {
    display: block;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 0.2rem;
}

.cd-row p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.cd-row a {
    color: #ff8800;
    text-decoration: none;
}

.cd-row a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255,136,0,0.12);
    border-color: #ff8800;
    color: #ff8800;
}

/* Contact form */
.contact-form-wrap {
    padding: 2.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

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

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff8800;
    box-shadow: 0 0 0 3px rgba(255,136,0,0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-form .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Footer V2
   =================================== */

.footer-v2 {
    position: relative;
    background: #080c18;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255,136,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff8800;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-brand .footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

.footer-v2 .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-v2 .footer-links a {
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-v2 .footer-links a:hover {
    color: #ff8800;
}

.footer-col p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ff8800;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #64748b;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255,136,0,0.1);
    border-color: #ff8800;
    color: #ff8800;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}

.footer-bottom-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-v2 p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
}

.footer-tagline {
    font-style: italic;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom-v2 {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

section#home {
    padding: 0;
}

/* Capabilities Band - handled in components.css */

/* Section Backgrounds - Dark/Light alternation matching hero */
section#about {
    /* Handled by .section-dark-alt */
}

section#why-us {
    background: #ffffff;
}

section#services {
    /* Handled by .section-dark-alt */
}

section#projects {
    background: #fafbfc;
}

section#team {
    /* Handled by .section-dark-alt */
}

section#tech-stack {
    background: #ffffff;
}

section#contact {
    /* Handled by .section-dark-alt */
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title-modern h2 {
        font-size: 2rem;
    }
}

/* Page-specific customizations can be added here */

/* Smooth transition for dynamically loaded sections */
[data-section] {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    min-height: 100px;
    position: relative;
}

/* Loading spinner for sections */
[data-section]:not(.loaded)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff8800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

[data-section].loaded {
    opacity: 1;
    min-height: auto;
}

/* Lazy loading image transitions */
img[data-src] {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

img[data-src].loaded {
    opacity: 1;
}

/* Add blur effect during image loading for better UX */
img[data-src]:not(.loaded) {
    filter: blur(5px);
    transform: scale(1.05);
}

img[data-src].loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Print styles */
@media print {
    header,
    .section-nav,
    .scroll-top {
        display: none;
    }
}

