/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #070f1a;
    --bg-darker: #040810;
    --bg-light-dark: #0d1b2a;
    --primary: #206a9c;
    --primary-light: #348fc9;
    --primary-dark: #14496d;
    --secondary: #1b5b88;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --white: #ffffff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --glass-bg: rgba(13, 27, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(0, 229, 255, 0.25);
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    transition: font-size 0.2s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

.divider.text-left {
    margin-left: 0;
}

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

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.section-title {
    font-size: 2.2rem;
    margin-top: 8px;
}

.section-title.text-left {
    text-align: left;
}

.gradient-text {
    background: linear-gradient(135deg, var(--white) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 91, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 91, 136, 0.6);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-card {
    width: 100%;
    padding: 10px 20px;
    background-color: rgba(32, 106, 156, 0.15);
    border: 1px solid rgba(32, 106, 156, 0.3);
    color: var(--accent);
    font-size: 0.95rem;
    margin-top: auto;
}

.btn-card:hover:not(:disabled) {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(32, 106, 156, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
    color: var(--white);
}

.btn-disabled {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Glassmorphism Styles */
.header-glass {
    background: rgba(7, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Badges */
.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-active {
    background-color: rgba(0, 229, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-development {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-upcoming {
    background-color: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-new {
    background-color: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
}

#main-header.scrolled {
    height: 70px;
    background: rgba(4, 8, 16, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.01em;
}

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

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(27, 91, 136, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(32, 106, 156, 0.1) 0%, transparent 50%);
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: pulse 10s ease-in-out infinite alternate;
}

.shape-1 {
    top: 15%;
    right: 15%;
    width: 300px;
    height: 300px;
    background-color: rgba(32, 106, 156, 0.3);
}

.shape-2 {
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background-color: rgba(0, 229, 255, 0.15);
    animation-delay: -5s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    border-left: 2px solid var(--accent);
    padding-left: 12px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-main-img {
    width: 320px;
    height: 320px;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-focus);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.08);
}

.project-image-container {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-image-container.bg-gradient-blue {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
}

.project-image-container.bg-gradient-purple {
    background: linear-gradient(135deg, #581c87 0%, #1e1b4b 100%);
}

.img-banner-container {
    padding: 0;
}

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

.project-card:hover .project-banner-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(4, 8, 16, 0.8) 100%);
    z-index: 1;
}

.project-icon-wrapper {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    animation: float-icon 4s ease-in-out infinite alternate;
}

.project-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

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

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-card-decorative {
    width: 320px;
    padding: 36px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    animation: float 8s ease-in-out infinite;
}

.dec-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.about-card-decorative h3 {
    margin-bottom: 12px;
}

.about-card-decorative p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.decor-dots {
    display: flex;
    gap: 8px;
}

.decor-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.decor-dots .dot.active {
    background-color: var(--accent) !important;
    transform: scale(1.2);
}

body.high-contrast .decor-dots .dot {
    background-color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

body.high-contrast .decor-dots .dot.active {
    background-color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.contact-card {
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8) 0%, rgba(7, 15, 26, 0.8) 100%);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.contact-info {
    padding: 50px;
    background-color: rgba(32, 106, 156, 0.1);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 40px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.contact-item a, .contact-item p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    padding: 50px;
    display: flex;
    align-items: center;
}

.form-container {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: rgba(4, 8, 16, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-checkbox label a {
    color: var(--accent);
    text-decoration: underline;
}

/* Form States (AJAX Feedback) */
.form-feedback-container {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

.feedback-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.feedback-success {
    color: var(--success);
}

.feedback-error {
    color: var(--error);
}

.feedback-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feedback-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   STANDALONE LEGAL PAGES LAYOUT
   ========================================================================== */
.legal-page-wrapper {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 10%, rgba(27, 91, 136, 0.12) 0%, transparent 60%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
}

.btn-back {
    margin-bottom: 30px;
    align-self: flex-start;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--white);
}

.legal-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: block;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.legal-body {
    color: var(--text-muted);
    font-size: 1rem;
}

.legal-body h2, .legal-body h3 {
    color: var(--white);
    margin: 36px 0 16px;
    font-family: 'Outfit', sans-serif;
}

.legal-body h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.legal-body h3 {
    font-size: 1.15rem;
}

.legal-body p {
    margin-bottom: 20px;
}

.legal-body ul {
    margin-bottom: 24px;
    padding-left: 24px;
    list-style: disc;
}

.legal-body li {
    margin-bottom: 10px;
}

.legal-body strong {
    color: var(--white);
}

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
}

/* Custom Scrollbar for legal pages */
.legal-card::-webkit-scrollbar {
    width: 6px;
}

.legal-card::-webkit-scrollbar-track {
    background: transparent;
}

.legal-card::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

/* ==========================================================================
   COOKIE CONSENT BANNER STYLING
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -150px; /* Initially hidden */
    left: 0;
    width: 100%;
    z-index: 2000;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text i {
    font-size: 2.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ==========================================================================
   ACCESSIBILITY WIDGET STYLING
   ========================================================================== */
.accessibility-widget-container {
    position: fixed;
    bottom: 85px;
    right: 24px;
    z-index: 1900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.accessibility-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 1px solid var(--accent);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transition: var(--transition);
}

.accessibility-btn:hover {
    transform: scale(1.08);
    background-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.accessibility-panel {
    width: 250px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.accessibility-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.accessibility-panel h3 {
    font-size: 1.1rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.acc-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-option span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.acc-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.acc-opt-btn {
    padding: 8px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.acc-opt-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   HIGH CONTRAST MODE STYLING (ACCESSIBILITY OVERRIDE)
   ========================================================================== */
body.high-contrast {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.high-contrast h1, 
body.high-contrast h2, 
body.high-contrast h3, 
body.high-contrast h4,
body.high-contrast .gradient-text,
body.high-contrast .logo-text,
body.high-contrast .project-card-title,
body.high-contrast .acc-option span {
    color: #ffff00 !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
}

body.high-contrast p,
body.high-contrast span,
body.high-contrast label,
body.high-contrast .text-muted,
body.high-contrast .about-text,
body.high-contrast .legal-body,
body.high-contrast .project-card-desc,
body.high-contrast .footer-desc {
    color: #ffffff !important;
}

body.high-contrast a,
body.high-contrast .legal-body a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.high-contrast a:hover {
    color: #ffffff !important;
}

body.high-contrast .header-glass,
body.high-contrast .card-glass,
body.high-contrast .project-card,
body.high-contrast .about-card-decorative,
body.high-contrast .contact-card,
body.high-contrast .contact-info,
body.high-contrast .accessibility-panel,
body.high-contrast .cookie-banner {
    background-color: #000000 !important;
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.high-contrast .btn,
body.high-contrast .acc-opt-btn {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
    text-transform: uppercase;
}

body.high-contrast .btn:hover,
body.high-contrast .acc-opt-btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

body.high-contrast .btn-primary {
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .badge {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .form-group input,
body.high-contrast .form-group textarea {
    background-color: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

body.high-contrast .form-group input:focus,
body.high-contrast .form-group textarea:focus {
    border-color: #ffff00 !important;
}

body.high-contrast .divider {
    background: #ffff00 !important;
}

body.high-contrast .feature-icon,
body.high-contrast .contact-item i {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .accessibility-btn {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

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

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 20px;
    text-align: center;
}

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

/* ==========================================================================
   ANIMATIONS & REVEAL ON SCROLL
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-icon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.45; }
}

/* Scroll reveal classes */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .legal-card {
        padding: 30px 20px;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .cookie-text {
        flex-direction: column;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-buttons button {
        flex: 1;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-darker);
        flex-direction: column;
        padding: 50px 0;
        gap: 30px;
        transition: right 0.4s ease;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .accessibility-widget-container {
        bottom: 100px;
        right: 16px;
    }
}

/* ==========================================================================
   TELEGRAM BOTS SECTION (REDESIGNED)
   ========================================================================== */
.bots-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
}

/* Background glowing blur effects */
.bots-bg-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bots-glow-blue {
    background: #0088cc;
    top: -100px;
    left: -100px;
}

.bots-glow-green {
    background: #10b981;
    bottom: -150px;
    right: -100px;
}

.bots-section .container {
    position: relative;
    z-index: 1;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Premium Card Layout */
.tg-card {
    position: relative;
    border-radius: 28px;
    padding: 2px; /* For the gradient border effect */
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    overflow: hidden;
    transition: var(--transition);
}

.tg-card-blue:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.4) 0%, rgba(255,255,255,0.02) 100%);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 136, 204, 0.15);
}

.tg-card-green:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(255,255,255,0.02) 100%);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.15);
}

/* Inner Container */
.tg-card-inner {
    background: rgba(7, 15, 26, 0.85);
    border-radius: 26px;
    padding: 40px 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

/* Glow back layer */
.tg-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 136, 204, 0.08), transparent 40%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.tg-card-glow-green {
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(16, 185, 129, 0.08), transparent 40%);
}

/* Header inside card */
.tg-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tg-logo-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.tg-logo-blue {
    background: linear-gradient(135deg, #0088cc 0%, #00a2e8 100%);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

.tg-logo-green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.tg-live-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tg-live-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Card content */
.tg-card-content {
    flex-grow: 1;
    margin-bottom: 35px;
}

.tg-channel-name {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.tg-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 15px;
}

.tg-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Features List */
.tg-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-feature i {
    color: var(--accent);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.tg-feature span {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer / Action */
.tg-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.tg-btn-blue {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
}

.tg-btn-blue:hover {
    background: linear-gradient(135deg, #009ce8 0%, #0088cc 100%);
    box-shadow: 0 10px 24px rgba(0, 136, 204, 0.4);
    transform: translateY(-2px);
    color: white;
}

.tg-btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.tg-btn-green:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    color: white;
}

.tg-arrow {
    transition: var(--transition);
}

.tg-btn:hover .tg-arrow {
    transform: translateX(4px);
}

.tg-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .bots-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tg-card-inner {
        padding: 30px 24px;
    }
}

