/* =====================================================================
   SunSoft World – shared stylesheet (loaded on EVERY page)
   Theme variables, navbar, theme switcher, hero, sections, buttons,
   cards, CTA and footer. Page-specific rules live in their own file.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: 100%; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
   /* Theme Variables */
        :root {
            /* Light Professional Theme (Default) */
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-tertiary: #e9ecef;
            --text-primary: #2c3e50;
            --text-secondary: #5a6c7d;
            --accent-primary: #3498db;
            --accent-secondary: #2980b9;
            --accent-tertiary: #e74c3c;
            --border-color: #dee2e6;
            --success-color: #27ae60;
        }

        [data-theme="dark"] {
            /* Dark Elegant Theme */
            --bg-primary: #0a0a0a;
            --bg-secondary: #1a1a1a;
            --bg-tertiary: #2a2a2a;
            --text-primary: #f5f1e8;
            --text-secondary: rgba(245, 241, 232, 0.8);
            --accent-primary: #d4af37;
            --accent-secondary: #a89158;
            --accent-tertiary: #ff6b35;
            --border-color: rgba(212, 175, 55, 0.2);
            --success-color: #2ecc71;
        }

        [data-theme="vibrant"] {
            /* Vibrant Modern Theme */
            --bg-primary: #f0f4f8;
            --bg-secondary: #ffffff;
            --bg-tertiary: #e0e7ef;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --accent-primary: #667eea;
            --accent-secondary: #5a67d8;
            --accent-tertiary: #f56565;
            --border-color: #cbd5e0;
            --success-color: #48bb78;
        }

        /* Theme Switcher */
        .theme-switcher {
            position: fixed;
            top: 100px;
            right: 2rem;
            z-index: 1001;
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            padding: 1rem;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            animation: slideInRight 1s ease-out 1.5s backwards;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .theme-switcher.hidden {
            transform: translateX(150%);
            opacity: 0;
            pointer-events: none;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(150%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .theme-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .theme-switcher h4 {
            font-size: 0.85rem;
            margin: 0;
            color: var(--text-primary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .theme-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s ease;
        }

        .theme-close:hover {
            color: var(--accent-tertiary);
        }

        .theme-toggle-btn {
            position: fixed;
            top: 100px;
            right: 2rem;
            z-index: 1000;
            background: var(--accent-primary);
            color: #ffffff;
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: none;
        }

        .theme-toggle-btn.visible {
            display: block;
            animation: slideInRight 0.3s ease-out;
        }

        .theme-toggle-btn:hover {
            background: var(--accent-secondary);
            transform: scale(1.05);
        }

        .theme-options {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .theme-btn {
            padding: 0.6rem 1rem;
            border: 2px solid var(--border-color);
            background: var(--bg-primary);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border-radius: 4px;
        }

        .theme-btn:hover {
            border-color: var(--accent-primary);
            transform: translateX(5px);
        }

        .theme-btn.active {
            background: var(--accent-primary);
            color: #ffffff;
            border-color: var(--accent-primary);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        [data-theme="dark"] body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulance type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 9999;
            animation: grain 8s steps(10) infinite;
        }

        @keyframes grain {
            0%, 100% { transform: translate(0, 0); }
            10% { transform: translate(-5%, -10%); }
            20% { transform: translate(-15%, 5%); }
            30% { transform: translate(7%, -25%); }
            40% { transform: translate(-5%, 25%); }
            50% { transform: translate(-15%, 10%); }
            60% { transform: translate(15%, 0%); }
            70% { transform: translate(0%, 15%); }
            80% { transform: translate(3%, 35%); }
            90% { transform: translate(-10%, 10%); }
        }

        /* Navigation */
        nav.navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            padding: 1.5rem 4rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: var(--bg-primary);
            backdrop-filter: blur(10px);
           
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: var(--accent-primary);
            text-decoration: none;
        }

        .logo img {
            height: 50px;
            width: auto;
        }

        .menu-toggle {
            display: none;
            background: transparent;
            border: 2px solid var(--accent-primary);
            color: var(--accent-primary);
            font-size: 1.5rem;
            padding: 0.5rem 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .menu-toggle:hover {
            background: var(--accent-primary);
            color: #ffffff;
        }

        #main-menu {
            display: flex;
            gap: 2.5rem;
        }

        #main-menu a {
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
            position: relative;
            transition: color 0.3s ease;
        }

        #main-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-primary);
            transition: width 0.3s ease;
        }

        #main-menu a:hover,
        #main-menu a.active {
            color: var(--accent-primary);
        }

        #main-menu a:hover::after,
        #main-menu a.active::after {
            width: 100%;
        }

.logo { font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif; }

/* ---------- Design tokens, typography, sections, hero, CTA ---------- */
:root { --hero-a: #0b1f3a; --hero-b: #164a85; --ink: #0f1b2d; --radius: 14px; --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.07); --ok: #1f9d6b; }
[data-theme="dark"] { --hero-a: #0a0a0a; --hero-b: #1c1a12; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); }
[data-theme="vibrant"] { --hero-a: #2d2a6e; --hero-b: #667eea; }
html, body { overflow-x: hidden; }
body { font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .ga-price, .ga-fee strong { font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif; letter-spacing: -.015em; }
.hero { position: relative; min-height: 0; padding: 9.5rem 1.5rem 5rem; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; animation: none; }
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.2; font-weight: 700; color: #fff; margin: 0 auto 1.1rem; }
html[data-lang="mr"] .hero h1 { font-size: clamp(1.55rem, 3.8vw, 2.5rem); line-height: 1.4; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; opacity: 1; }
.hero .btn { display: inline-block; margin: .3rem; padding: .85rem 1.8rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.hero .btn-primary { background: #fff; color: var(--hero-a); border: 2px solid #fff; }
.hero .btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.hero .btn:hover { transform: translateY(-2px); }
main { position: relative; z-index: 2; background: var(--bg-primary); }
footer { position: relative; z-index: 2; }
.section { padding: 5rem 1.5rem; background: var(--bg-primary); color: var(--text-primary); }
.section-alt { background: var(--bg-secondary); }
.wrap { max-width: 1240px; width: 100%; margin: 0 auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: .6rem; }
.wrap h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.25; font-weight: 700; margin-bottom: .6rem; }
html[data-lang="mr"] .wrap h2, html[data-lang="mr"] .cta-section h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.45; }
.lead { color: var(--text-secondary); margin: 0 auto; }
.cta-section { padding: 4.5rem 1.5rem; text-align: center; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; }
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; color: #fff; }
.cta-section p { margin: 0 auto 1.6rem; max-width: 560px; color: rgba(255,255,255,.85); }
.cta-section .btn { display: inline-block; padding: .9rem 2rem; border-radius: 10px; background: #fff; color: var(--hero-a); font-weight: 600; text-decoration: none; border: 2px solid #fff; }
/* Firefox renders DM Sans noticeably smaller than Chrome/Edge/Safari, so its root size is raised ~10%.
   Done in pure CSS (@supports) so there is no layout shift after load. Fixed px (not %) so it does not depend on the
   per-language default font size Firefox uses. 17.6px = 110% of 16px. Change this number to tune Firefox. */
@supports (-moz-appearance: none) { html { font-size: 17.6px; } }
.container { max-width: 1240px; width: 100%; margin-left: auto; margin-right: auto; }
.narrow { max-width: 860px; }
.section-title { text-align: center; }
.hero-kicker { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.hero h1, .hero h2.hero-title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.2; font-weight: 700; color: #fff; margin: 0 auto 1.1rem; }
.hero .highlight { color: #8fd0ff; }
[data-theme="dark"] .hero .highlight { color: var(--accent-primary); }
.btn { display: inline-block; padding: .85rem 1.8rem; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-primary); color: #fff; border: 2px solid var(--accent-primary); }
.btn-secondary { background: transparent; color: var(--accent-primary); border: 2px solid var(--accent-primary); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.cta-section .btn { background: #fff; color: var(--hero-a); border: 2px solid #fff; }
.project-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .25s; }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }
.project-card:hover { transform: translateY(-4px); }
.project-card h3 { font-size: 1.15rem; margin: .4rem 0 .6rem; color: var(--text-primary); }
.project-card p { color: var(--text-secondary); font-size: .93rem; flex: 1; margin-bottom: 1.1rem; }
.project-card a { align-self: flex-start; color: var(--accent-primary); font-weight: 600; text-decoration: none; }
.project-card a::after { content: ' →'; }
.project-card a:hover { text-decoration: underline; }
.project-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; max-width: 1240px; margin: 0 auto; }
footer { background: var(--hero-a); color: rgba(255,255,255,.75); text-align: center; padding: 1.75rem 1rem; font-size: .9rem; }
@media (max-width: 968px) {
  .hero { padding-top: 7.5rem; }
  .section, .projects, .process { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 480px) {
  .section { padding-top: 3rem; padding-bottom: 3rem; }
  .section-head { margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Responsive navigation ----------
   Desktop menu from 900px up, hamburger menu at 899px and below.
   900-1099px: smaller logo/links/gaps so all links stay on ONE line (white-space: nowrap, no wrapping). */
nav.navbar { padding: 1rem 1.5rem; gap: 1.25rem; }
.logo { flex-shrink: 0; white-space: nowrap; font-size: 1.3rem; gap: .6rem; }
.logo img { height: 44px; }
#main-menu { align-items: center; flex-wrap: nowrap; gap: 1.1rem; }
#main-menu a { white-space: nowrap; font-size: .85rem; letter-spacing: .3px; }
@media (min-width: 1100px) {
  nav.navbar { padding: 1rem 2.5rem; }
  .logo { font-size: 1.5rem; gap: .75rem; }
  .logo img { height: 50px; }
  #main-menu { gap: 1.6rem; }
  #main-menu a { font-size: .9rem; letter-spacing: .5px; }
}
@media (min-width: 1301px) { nav.navbar { padding: 1rem 4rem; } #main-menu { gap: 2rem; } }

/* Services drop-down (desktop): opens on hover, keyboard focus or the small arrow button */
.has-sub { position: relative; display: flex; align-items: center; gap: .1rem; }
.sub-toggle { background: transparent; border: 0; color: var(--text-primary); cursor: pointer; font-size: .7rem; line-height: 1; padding: .3rem .3rem; transition: transform .2s ease, color .2s ease; }
.has-sub:hover .sub-toggle, .has-sub.open .sub-toggle { color: var(--accent-primary); transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 1rem); left: -1rem; min-width: 210px; padding: .4rem; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 1100; }
.submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; } /* hover bridge, so the menu does not close while the mouse travels down */
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .6rem .9rem; border-radius: 6px; font-size: .9rem; letter-spacing: .2px; }
.submenu a::after { display: none; }
.submenu a:hover, .submenu a.active { background: var(--bg-secondary); }

/* Below 900px the links move into the hamburger menu */
@media (max-width: 899px) {
  nav.navbar { padding: .85rem 1.5rem; }
  .logo { font-size: 1.5rem; gap: .75rem; }
  .logo img { height: 50px; }
  .menu-toggle { display: block; margin-left: auto; line-height: 1; border-radius: 8px; }
  #main-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-primary); padding: 0 1.5rem; max-height: 0; overflow: hidden; visibility: hidden; border-top: 1px solid var(--border-color); box-shadow: 0 8px 16px rgba(0,0,0,.1); transition: max-height .3s ease, padding .3s ease, visibility .3s; }
  #main-menu.show { max-height: calc(100vh - 80px); overflow-y: auto; visibility: visible; padding: .5rem 1.5rem 1rem; }
  #main-menu a { padding: .95rem 0; font-size: 1rem; letter-spacing: .5px; border-bottom: 1px solid var(--border-color); }
  #main-menu > a:last-child { border-bottom: 0; }
  #main-menu a::after { display: none; }
  /* Services: the 4 sub-links are always listed (indented) under "Services" */
  .has-sub { display: block; }
  .has-sub > a { display: block; }
  .sub-toggle { display: none; }
  .submenu { position: static; min-width: 0; padding: 0 0 0 1rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .submenu::before { display: none; }
  .submenu a { padding: .8rem 0; font-size: .95rem; border-radius: 0; color: var(--text-secondary); }
  .submenu a:hover, .submenu a.active { background: transparent; color: var(--accent-primary); }
  .submenu a:last-child { border-bottom: 1px solid var(--border-color); }
  .theme-switcher, .theme-toggle-btn { top: 84px; }
}
@media (max-width: 480px) {
  nav.navbar { padding: .65rem 1rem; gap: .75rem; }
  .logo { font-size: 1.15rem; gap: .5rem; }
  .logo img { height: 38px; }
  .menu-toggle { padding: .4rem .8rem; }
  .theme-switcher, .theme-toggle-btn { top: 72px; right: .5rem; }
}
