@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #2D2856;
    --primary-hover: #1b1836;
    --primary-light: #f0eff8;
    --secondary: #c5c3df;
    --secondary-hover: #a5a2cc;
    --accent: #1c8adb;
    --warning: #f4a261;
    --danger: #e76f51;
    
    /* Neutral Colors */
    --text-dark: #2D2856;
    --text-muted: #4e5b73;
    --text-light: #8c9bb5;
    --bg-light: #f4f4f9;
    --bg-surface: #ffffff;
    --border-color: rgba(45, 40, 86, 0.15);
    
    /* Layout & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 20px rgba(10, 147, 150, 0.15);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

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

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

/* Navigation Bar */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    height: 58px; /* Prominent, expressive header logo height */
    text-decoration: none;
}
.logo img {
    height: 58px; /* Prominent logo image */
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(45, 40, 86, 0.25));
    transition: var(--transition);
}
.logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 5px 15px rgba(45, 40, 86, 0.35));
}

.logo-icon {
    display: none !important;
    display: none !important;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(0, 95, 115, 0.05);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 10px rgba(0, 95, 115, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 95, 115, 0.3);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 1.5rem;
    background: radial-gradient(circle at top right, rgba(10, 147, 150, 0.1), transparent), 
                radial-gradient(circle at bottom left, rgba(0, 95, 115, 0.05), transparent);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tag {
    align-self: flex-start;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-surface);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--bg-surface);
    padding: 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.hero-badge-icon {
    width: 48px;
    height: 48px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-badge-text h4 {
    font-size: 1.1rem;
}

.hero-badge-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Common Styles */
.section {
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 147, 150, 0.15), var(--shadow-glow);
    border-color: var(--secondary);
}

.category-image {
    height: 200px;
    background-color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.category-content h3 {
    font-size: 1.35rem;
}

.category-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
}

.category-link {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.category-link:hover {
    color: var(--primary-hover);
}

/* Spec Tables */
.table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.spec-table th {
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.spec-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) td {
    background-color: rgba(248, 250, 252, 0.5);
}

/* Info Panels */
.info-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.info-panel.reverse {
    direction: rtl;
}

.info-panel.reverse .info-content {
    direction: ltr;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-title {
    font-size: 2.25rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-list-icon {
    color: var(--secondary);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.2rem;
}

/* Charts and Visual Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 350px;
}

/* Interactive Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 4px solid var(--primary);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background-color: var(--secondary);
    transform: scale(1.2);
}

.timeline-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Custom Accordion for Chemical Subproducts */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.accordion-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
    background-color: var(--bg-surface);
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-icon {
    font-size: 1.25rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

/* Contact Info & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-method-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(0, 95, 115, 0.1);
}

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

.form-file-input {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 50px;
    padding: 1.5rem;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.form-file-input:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.form-file-input input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-file-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-file-text strong {
    color: var(--primary);
}

/* Footer Section */
footer {
    background-color: #f8fafc; /* Lightest whitish shade */
    color: #475569;            /* Slate dark text */
    padding: 5rem 1.5rem 2rem 1.5rem;
    border-top: 1px solid rgba(45, 40, 86, 0.15);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(45, 40, 86, 0.15);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary); /* Deep Indigo logo branding */
}

.footer-logo span {
    color: var(--secondary);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #cbd5e1; /* Silver-grey social background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary); /* Indigo social icons */
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    color: var(--primary); /* Deep Indigo section headers */
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary); /* Accent lavender line */
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    color: #475569;
}

.footer-link:hover {
    color: black;
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(45, 40, 86, 0.1);
    padding-top: 1.5rem;
    color: var(--text-light);
}

/* Spec Detail Modal (General Usage) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: var(--bg-surface);
    width: 100%;
    max-width: 750px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .hero-container, .info-panel, .dashboard-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image-wrapper { order: -1; }
    .info-panel.reverse { direction: ltr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-buttons { display: none; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Interactive Tab Elements & Spec Finder Styles */
.active-tab {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-sm);
}

.tab-pane {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#specResult {
    transition: var(--transition);
}

#specResult:hover {
    box-shadow: var(--shadow-glow);
    background-color: var(--primary-light);
}

/* Floating WhatsApp Widget Styling & Pulse UX effects */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white !important;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #20ba5a, #0e7568);
}

.whatsapp-float:active {
    transform: translateY(-2px) scale(0.98);
}

@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulseWhatsApp 2s infinite;
}




/* ==========================================================================
   Modern UI/UX Upgrades (Glow, Grid Backdrops, and Animations)
   ========================================================================== */
.dot-grid-bg {
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 20px 20px;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-card {
    background: var(--bg-surface);
    border: 2px solid var(--secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(28, 27, 91, 0.1);
}

/* Elegant shadow upgrades */
.shadow-premium {
    box-shadow: 0 10px 30px -5px rgba(45, 40, 86, 0.08), 0 5px 15px -5px rgba(45, 40, 86, 0.04) !important;
}

.shadow-premium:hover {
    box-shadow: 0 20px 40px -5px rgba(45, 40, 86, 0.15), 0 10px 20px -5px rgba(45, 40, 86, 0.08) !important;
}

/* UI/UX Graphical Effects */
.bg-dotted-grid {
    background-image: radial-gradient(rgba(45, 40, 86, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.glow-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}
.glow-primary { background-color: var(--primary); }
.glow-secondary { background-color: var(--secondary); }

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UI/UX Graphical Effects & Backgrounds */
.technical-grid-bg {
    position: relative;
}
.technical-grid-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('assets/bg-blueprint.png');
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.04; /* Very subtle technical background */
    pointer-events: none;
    z-index: 0;
}

/* Scroll-Trigger Animation System */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}
.animate-on-scroll.slide-left.visible {
    transform: translateX(0);
}
.animate-on-scroll.slide-right {
    transform: translateX(50px);
}
.animate-on-scroll.slide-right.visible {
    transform: translateX(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Interactive Hover Glow Effects */
.hover-glow {
    position: relative;
    transition: var(--transition);
}
.hover-glow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 25px rgba(45, 40, 86, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}
.hover-glow:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
}
.hover-glow:hover::after {
    opacity: 1;
}

/* Certifications Showcase Layout */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.cert-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.cert-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cert-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(45, 40, 86, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cert-card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-top: 0.25rem;
}
.cert-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.cert-footer {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}
