/* 
 * HEETIA TECHNOLOGIES LLP - Custom Stylesheet
 * Brand Theme: Blue & White Color Palette
 * Design: Premium, Glassmorphism, Responsive & Animated
 */

/* ==========================================================================
   CSS Custom Variables & Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors (Extracted from Logo) */
    --primary-dark: #02214f;       /* Deep Navy Blue */
    --primary-blue: #0070d2;       /* Vibrant Accent Blue */
    --primary-cyan: #009ff3;       /* Bright Cyan Highlight */
    
    /* Neutral & Background Colors */
    --bg-light: #f4f7fc;
    --bg-white: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(2, 33, 79, 0.08);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    /* Text Colors */
    --text-main: #1e293b;          /* Dark slate */
    --text-muted: #64748b;         /* Muted slate */
    --text-light: #94a3b8;         /* Light slate */
    --text-white: #ffffff;
    
    /* UI Gradients */
    --accent-gradient: linear-gradient(135deg, var(--primary-dark), var(--primary-blue), var(--primary-cyan));
    --accent-gradient-hover: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan), var(--primary-dark));
    --blue-gradient-light: linear-gradient(135deg, rgba(0, 112, 210, 0.05), rgba(0, 159, 243, 0.05));
    --hero-gradient: radial-gradient(circle at 10% 20%, rgba(244, 247, 252, 1) 0%, rgba(230, 237, 248, 1) 90%);
    
    /* Typography */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(2, 33, 79, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(2, 33, 79, 0.08), 0 4px 6px -2px rgba(2, 33, 79, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(2, 33, 79, 0.1), 0 10px 10px -5px rgba(2, 33, 79, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(2, 33, 79, 0.06);
    
    /* Layout & Transitions */
    --header-height: 80px;
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Scroll Progress Bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-cyan));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Containers & Common Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.section-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Typography & Typography Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-sm);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-dark);
    border: 2px solid rgba(2, 33, 79, 0.15);
}

.btn-secondary:hover {
    background: rgba(2, 33, 79, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   Glassmorphism Card Style
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-glass);
    padding: 40px;
    transition: var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 112, 210, 0.2);
}

/* ==========================================================================
   Header & Sticky Navigation Bar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 999;
    transition: var(--transition-fast);
}

/* Header scrolled state - triggered by JS */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 45px;
    width: auto;
    transition: var(--transition-fast);
}

.header.scrolled .nav-logo {
    height: 38px;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

/* Navbar Menu Items */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta .nav-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Our Products Dropdown Navigation
   ========================================================================== */

/* Dropdown Container */
.nav-dropdown {
    position: relative;
}

/* Trigger link arrow icon */
.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

.nav-dropdown.active .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(2, 33, 79, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 40px rgba(2, 33, 79, 0.12), 0 4px 12px rgba(2, 33, 79, 0.06);
    min-width: 440px;
    padding: 12px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Arrow tip on dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(2, 33, 79, 0.08);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

/* Show dropdown on hover (desktop) & JS .active class (all) */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown section header */
.dropdown-header {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    padding: 6px 12px 10px;
    border-bottom: 1px solid rgba(2, 33, 79, 0.06);
    margin-bottom: 8px;
}

/* Individual Product Card */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
    position: relative;
    margin-bottom: 4px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: var(--bg-light);
    border-color: rgba(0, 112, 210, 0.1);
    transform: translateX(4px);
}

/* Product Logo Box */
.dropdown-item-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--bg-white);
    border: 1px solid rgba(2, 33, 79, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.dropdown-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text info column */
.dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.dropdown-item-name {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.dropdown-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.dropdown-item-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(0, 112, 210, 0.08);
    border: 1px solid rgba(0, 112, 210, 0.12);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 4px;
    width: fit-content;
}

/* External link arrow */
.dropdown-ext-icon {
    font-size: 0.75rem;
    color: var(--text-light);
    flex-shrink: 0;
    opacity: 0;
    transition: var(--transition-fast);
}

.dropdown-item:hover .dropdown-ext-icon {
    opacity: 1;
    color: var(--primary-blue);
}

/* Hamburger Icon for Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary-dark);
    border-radius: 4px;
    transition: var(--transition-fast);
}

/* Hamburger active transformation */
.nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Home (Hero) Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-gradient);
    padding-top: calc(var(--header-height) + 40px);
    text-align: center;
    z-index: 1;
}

/* Floating Abstract Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.35;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: var(--primary-blue);
    top: 15%;
    left: 10%;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: var(--primary-cyan);
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-dark);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hero-logo-wrapper {
    margin-bottom: 30px;
    animation: floatIcon 4s infinite ease-in-out;
}

.hero-logo {
    max-height: 140px;
    width: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.stats-section {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 20px;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background-color: var(--bg-light);
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.mv-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mv-icon-box {
    width: 70px;
    height: 70px;
    background: var(--blue-gradient-light);
    border: 1px solid rgba(0, 112, 210, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

.mv-card:hover .mv-icon-box {
    background: var(--accent-gradient);
    color: var(--text-white);
    transform: scale(1.1);
}

.mv-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background-color: var(--bg-white);
}

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

.service-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    padding: 50px 30px 40px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--blue-gradient-light);
    border: 1px solid rgba(0, 112, 210, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: var(--text-white);
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Accent slide border on hover */
.card-accent-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    transition: var(--transition-fast);
}

.service-card:hover .card-accent-border {
    width: 100%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 40px;
    align-items: start;
}

/* Info Pane Styling */
.contact-info {
    height: 100%;
}

.info-card {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 50px 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Inner graphic element in Info Card */
.info-card::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 159, 243, 0.15) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
    z-index: 0;
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.info-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: auto;
    position: relative;
    z-index: 1;
}

.info-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.4rem;
    color: var(--primary-cyan);
    margin-top: 3px;
}

.info-text span {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 2px;
}

.info-text p, .info-text p a {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-text p a:hover {
    color: var(--primary-cyan);
}

.social-box {
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.social-box span {
    display: block;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Contact Form Styling */
.contact-form-card {
    padding: 45px;
}

.form-title {
    margin-bottom: 30px;
}

.form-title h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-title p {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.col-6 {
    flex: 1;
}

.form-group label {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 42px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--bg-white);
    border: 1.5px solid rgba(2, 33, 79, 0.1);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: inset 0 2px 4px 0 rgba(2, 33, 79, 0.02);
    /* Prevent default iOS rounding/shadows and collapsing */
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.form-group input {
    height: 48px;
    min-height: 48px;
}

/* Reset default Safari required red box-shadow on load */
input:invalid, textarea:invalid {
    box-shadow: none;
}

.text-area-wrapper .input-icon {
    top: 20px;
    transform: none;
}

.form-group textarea {
    padding-top: 15px;
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

/* Focused states */
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 112, 210, 0.1);
    background-color: var(--bg-white);
}

.form-group input:focus + .input-icon, .form-group textarea:focus + .input-icon {
    color: var(--primary-blue);
}

/* Validation styling */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: #f87171;
    background-color: rgba(254, 242, 242, 0.5);
}

.form-group.invalid .input-icon {
    color: #ef4444;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Spinner & Button Loading Styles */
.btn-loader {
    margin-left: 8px;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 2fr 2fr 4fr;
    gap: 40px;
    margin-bottom: 60px;
}

.branding-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--primary-cyan);
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.footer-info li i {
    color: var(--primary-cyan);
    margin-top: 5px;
}

.footer-info li span {
    color: rgba(255, 255, 255, 0.85);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* ==========================================================================
   Scroll-To-Top Button
   ========================================================================== */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Hidden offscreen by default */
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 99;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
}

#scrollToTopBtn.visible {
    right: 30px;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Custom Alert Modal Popup
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 33, 79, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 40px 30px;
    transform: scale(0.85);
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.9);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-white);
}

.modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.modal-icon.error {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.modal-card h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.modal-card .btn {
    min-width: 120px;
}

/* ==========================================================================
   Product Detail Modal (HestiaStay & Vriona)
   ========================================================================== */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 33, 79, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.product-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.product-modal {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(2, 33, 79, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 30px 60px rgba(2, 33, 79, 0.2), var(--shadow-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 33, 79, 0.2) transparent;
}

/* Custom scrollbar for WebKit browsers */
.product-modal::-webkit-scrollbar {
    width: 6px;
}
.product-modal::-webkit-scrollbar-track {
    background: transparent;
}
.product-modal::-webkit-scrollbar-thumb {
    background: rgba(2, 33, 79, 0.15);
    border-radius: 10px;
}
.product-modal::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.product-modal-overlay.open .product-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close Button */
.product-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(2, 33, 79, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.product-modal-close:hover {
    background: #ef4444;
    color: var(--text-white);
    transform: rotate(90deg);
}

/* Modal Header Layout */
.product-modal-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(2, 33, 79, 0.08);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.product-modal-logo-wrap {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--bg-white);
    border: 1.5px solid rgba(2, 33, 79, 0.08);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.product-modal-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-modal-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.product-modal-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: rgba(0, 112, 210, 0.08);
    border: 1px solid rgba(0, 112, 210, 0.15);
    border-radius: 20px;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}

.product-modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.product-modal-visit {
    margin-top: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections Layout */
.product-modal-section {
    margin-bottom: 30px;
}

.product-modal-section-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.product-modal-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.product-modal-desc {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
}

/* Features List styling */
.product-modal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    list-style: none;
    padding: 0;
}

.product-modal-features li {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.product-modal-features li i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 3px;
}

/* Screenshots Grid */
.product-modal-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.product-modal-screenshot-card {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(2, 33, 79, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.product-modal-screenshot-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.product-modal-screenshot-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Modal Footer CTA */
.product-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(2, 33, 79, 0.08);
    padding-top: 25px;
    margin-top: 40px;
}

.product-modal-footer-text {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .product-modal {
        padding: 30px 20px;
    }

    .product-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .product-modal-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .product-modal-meta {
        align-items: center;
    }

    .product-modal-title {
        font-size: 1.8rem;
    }

    .product-modal-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-modal-screenshots {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-modal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* ==========================================================================
   Page Load & Scroll Entrance Animations (Intersection Observer)
   ========================================================================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Apply deliberate stagger timings to child elements in JS */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes floatShape {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Layout (1024px and below) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        height: auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Layout (768px and below) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: var(--shadow-sm);
        height: 70px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navbar menu transforms to mobile menu drawer */
    .navbar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        transition: var(--transition-medium);
        padding: 40px 24px;
        align-items: flex-start;
        display: block;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        display: block;
    }
    
    .nav-cta {
        display: none; /* Hide secondary cta on small mobile header, can be inside drawer */
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile dropdown overrides - accordion style inside drawer */
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(2, 33, 79, 0.06);
        border-radius: var(--border-radius-sm);
        background: var(--bg-light);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 8px;
        margin-top: 8px;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.4s ease, padding 0.3s ease;
        pointer-events: none;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 600px;
        pointer-events: auto;
        transform: none;
    }
    
    .dropdown-item {
        flex-wrap: nowrap;
    }
    
    .dropdown-item-logo {
        width: 44px;
        height: 44px;
    }
    
    .dropdown-item-name {
        font-size: 0.95rem;
    }
    
    .dropdown-item-desc {
        font-size: 0.75rem;
    }
    
    .dropdown-ext-icon {
        display: none;
    }
    
    /* Hero section font sizing */
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 15px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Stats Layout */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* About Mission/Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Services grid to 1 column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Form fields to columns */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .col-6 {
        width: 100%;
        min-width: 0;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .info-text p {
        word-break: break-word;
    }
    
    .contact-form-card {
        padding: 25px 20px;
    }
    
    /* Footer bottom to stack */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
