/* ==========================================
   NAVIYUGA — 5D MARKETING INTELLIGENCE
   Single shared stylesheet for the whole site
   (home, services, portfolio, about, contact)
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --dark-bg: #0a0a1a;
    --bg-panel: rgba(10, 15, 35, 0.6);
    --card-bg: rgba(15, 15, 35, 0.8);
    --bg-panel-solid: #01010b;
    --border-color: rgba(0, 212, 255, 0.2);
    --border-color-strong: rgba(0, 212, 255, 0.5);

    --cyan: #00d4ff;
    --purple: #a855f7;
    --pink: #f5576c;
    --violet: #764ba2;
    --secondary-color: #667eea;
    --accent-color: #ff006e;
    --success-color: #43e97b;

    --text-primary: #ffffff;
    --text-secondary: #b4c7ff;
    --text-muted: #9aa9cf;
    --text-faint: #6c7a9e;

    --radius-lg: 28px;
    --radius-xl: 60px;
    --radius-pill: 50px;

    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
}

/* ==========================================
   3D CANVAS BACKGROUND
   ========================================== */

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Wrapper used on the home page */
.content-layer {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Wrapper used on interior pages (services/portfolio/about/contact) */
.content-overlay {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    min-height: 100vh;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.main-nav .logo,
.logo {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.main-nav ul,
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}

.main-nav a,
.nav-links a {
    color: #eef5ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active,
.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan);
}

/* ==========================================
   HERO — home page (full viewport)
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    position: relative;
}

/* Interior-page hero variant (shorter, used on services/about/etc. if needed) */
.content-overlay .hero {
    min-height: 50vh;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--cyan), #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease;
}

.content-overlay .hero h1 {
    font-size: 4rem;
}

.glow-text {
    font-size: 1.2rem;
    letter-spacing: 6px;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero-sub,
.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================
   BUTTONS
   Supports two markup conventions:
     <a class="cta-btn primary-cta">   (home page)
     <button class="cta-btn primary">  (interior pages)
   ========================================== */

.cta-btn {
    padding: 14px 38px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.primary-cta,
.cta-btn.primary {
    background: linear-gradient(45deg, var(--cyan), var(--violet));
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    border: 2px solid transparent;
}

.primary-cta:hover,
.cta-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.7);
}

.secondary-cta,
.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color-strong);
    color: var(--cyan);
    backdrop-filter: blur(5px);
}

.secondary-cta:hover,
.cta-btn.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-4px);
}

.cta-btn.full-width {
    width: 100%;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

section {
    padding: 100px 6% 80px;
}

.section-title,
.five-dimensions h2 {
    font-size: 2.8rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-sub,
.section-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.five-dimensions {
    padding: 4rem 3rem;
}

/* ==========================================
   5 DIMENSIONS GRID
   ========================================== */

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.dimension-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out backwards;
}

.dimension-card:nth-child(1) { animation-delay: 0.1s; }
.dimension-card:nth-child(2) { animation-delay: 0.2s; }
.dimension-card:nth-child(3) { animation-delay: 0.3s; }
.dimension-card:nth-child(4) { animation-delay: 0.4s; }
.dimension-card:nth-child(5) { animation-delay: 0.5s; }

.dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s;
}

.dimension-card:hover::before {
    left: 100%;
}

.dimension-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px -15px rgba(0, 212, 255, 0.2);
}

.dimension-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.dimension-card:nth-child(1) .dimension-icon { animation-delay: 0s; }
.dimension-card:nth-child(2) .dimension-icon { animation-delay: 0.2s; }
.dimension-card:nth-child(3) .dimension-icon { animation-delay: 0.4s; }
.dimension-card:nth-child(4) .dimension-icon { animation-delay: 0.6s; }
.dimension-card:nth-child(5) .dimension-icon { animation-delay: 0.8s; }

.dimension-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.dimension-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.dimension-features {
    list-style: none;
    margin-top: 20px;
}

.dimension-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-features li i {
    color: var(--cyan);
    font-size: 0.8rem;
}

/* ==========================================
   STATS ROW
   ========================================== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    margin: 40px 6%;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cyan);
}

/* ==========================================
   FEATURE HIGHLIGHTS (home page tech stack)
   ========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-highlight {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-highlight:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
}

.feature-highlight i {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 16px;
}

.feature-highlight h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-highlight p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   FEATURES SECTION (interior-page variant)
   ========================================== */

.features {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, rgba(102, 126, 234, 0.02) 100%);
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--cyan);
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-color: var(--cyan);
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.15);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--cyan);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   TESTIMONIAL
   ========================================== */

.testimonial-card {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(15, 20, 45, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.testimonial-card p {
    color: var(--text-primary);
}

/* ==========================================
   CTA SECTION (interior-page banner)
   ========================================== */

.cta-section {
    padding: 4rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================
   PORTFOLIO PAGE
   ========================================== */

.portfolio-page {
    padding-top: 80px;
}

.portfolio-page h1 {
    font-size: 3.5rem;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-15px);
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    position: relative;
}

.portfolio-item h3 {
    padding: 1.5rem;
    color: var(--cyan);
    font-size: 1.3rem;
}

.portfolio-item p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
    border: 1px solid var(--border-color-strong);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-page {
    padding: 80px 3rem 3rem;
}

.contact-page h1 {
    font-size: 3.5rem;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-container {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.info-icon {
    font-size: 2rem;
}

.info-item h4 {
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */

.about-page {
    padding: 80px 3rem 3rem;
}

.about-page h1 {
    font-size: 3.5rem;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--border-color);
    padding: 60px 6% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h3 {
    font-size: 1.7rem;
}

.footer-grid h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-grid > div > p {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin: 10px 0;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.social-icons a {
    background: #101a30;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.social-icons a:hover {
    background: var(--cyan);
    color: #000;
}

footer > div:last-child {
    border-top: 1px solid #1e243f;
    padding-top: 30px;
    text-align: center;
    color: var(--text-faint);
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.6rem; }

    .dimensions-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem;
        flex-wrap: wrap;
        row-gap: 0.75rem;
        justify-content: center;
    }

    .main-nav ul,
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 { font-size: 2.8rem; }
    .hero-sub,
    .hero .subtitle { font-size: 1rem; }

    .section-title,
    .five-dimensions h2 { font-size: 2rem; }

    section { padding: 70px 6% 60px; }
    .stats-row { margin: 30px 6%; padding: 35px 20px; }

    .dimensions-grid,
    .features-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .dimension-card,
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo,
    .main-nav .logo { font-size: 1.5rem; }

    .hero h1 { font-size: 2.1rem; }
    .glow-text { font-size: 1rem; letter-spacing: 3px; }
    .tagline { font-size: 1rem; }
    .section-title,
    .five-dimensions h2 { font-size: 1.5rem; }

    .cta-btn { padding: 12px 26px; font-size: 0.9rem; }
    .dimension-card { padding: 24px 20px; }
    .dimension-card h3 { font-size: 1.2rem; }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.75rem;
    }
}