:root {
    --primary: #00adb5;
    --primary-glow: rgba(0, 173, 181, 0.5);
    --dark: #16213e;
    --darker: #1a1a2e;
    --text-light: #ffffff;
    --text-accent: #00fff5;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
nav {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(29,53,87,0.9) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0px 4px 15px rgba(0, 173, 181, 0.3);
    backdrop-filter: blur(10px);
}

/* Logo Styles */
nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: whitesmoke;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
}

nav .logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav .logo:hover::after {
    width: 100%;
}

/* Add specific rules to keep logo color consistent */
nav .logo:hover,
nav .logo:visited,
nav .logo:active,
nav .logo:focus,
nav a.logo:hover,
nav a.logo:visited,
nav a.logo:active,
nav a.logo:focus {
    color: whitesmoke;
    text-decoration: none;
}

/* Navbar Links */
nav .navbar-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .navbar-links a {
    color: whitesmoke;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.5px;
}

/* Add these styles to fix the link color issue */
nav .navbar-links a:visited,
nav .navbar-links a:active,
nav .navbar-links a.nav-link:visited,
nav .navbar-links a.nav-link:active {
    color: whitesmoke;
}

nav .navbar-links a:hover {
    color: var(--primary);
}

nav .navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Logo Styles */
nav .logo img {
    height: 50px;
    width: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #0f0f13;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background-color: #111827; /* Match bg-gray-900 */
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, rgba(22,33,62,0.9) 0%, rgba(10,10,20,0.95) 100%), url('/media/background.avif') no-repeat center center;
    background-size: cover;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Add futuristic elements to hero section */
#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,173,181,0.1) 0%, rgba(0,0,0,0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

#hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('/D:/NEW PROJECTS/ptyped main site prototype/media/grid-overlay.png');
    opacity: 0.1;
    z-index: -1;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 173, 181, 0.8);
}

#hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
}

#hero .hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-glow);
}

#hero .hero-subheading {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

#hero .discover-more {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), #008c91);
    padding: 14px 32px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

#hero .discover-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.6);
}

#hero .discover-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

#hero .discover-more:hover::after {
    transform: translateX(100%);
}

/* Style for the Discover More button */
.discover-more-btn {
    background: linear-gradient(90deg, var(--primary), #008c91);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
    letter-spacing: 1px;
}

.discover-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.6);
}

/* Section Styling */
section {
    padding: 100px 5%;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary);
}

/* Features section improvements */
#features {
    background: linear-gradient(135deg, #0a0a14 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.feature {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 173, 181, 0.3);
    border: 1px solid rgba(0, 173, 181, 0.3);
}

.feature i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #008c91);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0a0a14 0%, #000000 100%);
    padding: 40px 5%;
    text-align: center;
    color: #fff;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Social media links */
footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor */
#cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    /* Remove mix-blend-mode to prevent color changes */
    /* mix-blend-mode: difference; */
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.6); /* Add glow effect */
}

/* Cursor Trail */
#cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary);
    pointer-events: none;
    /* Remove mix-blend-mode to prevent color changes */
    /* mix-blend-mode: difference; */
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.5;
}

/* Chatbot Icon and Panel */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #008c91);
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.chatbot-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.6);
}

.chatbot-icon i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.chatbot-icon span {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Founders section */
#founders {
    background: linear-gradient(135deg, #16213e 0%, #0a0a14 100%);
}

#founders .founder-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

#founders .founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 173, 181, 0.3);
    border: 1px solid rgba(0, 173, 181, 0.3);
}

#founders img {
    border: 2px solid var(--primary);
    padding: 5px;
    transition: all 0.3s ease;
}

#founders .founder-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* AI-themed decorative elements */
.ai-circuit {
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('/D:/NEW PROJECTS/ptyped main site prototype/media/circuit-pattern.png');
    opacity: 0.05;
    z-index: -1;
}

.ai-circuit.top-left {
    top: 0;
    left: 0;
}

.ai-circuit.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* Feature section modernization */
.feature {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature:nth-child(1) { transition-delay: 0s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.4s; }
.feature:nth-child(4) { transition-delay: 0.6s; }

/* Futuristic section transitions */
section {
    position: relative;
    overflow: hidden;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /*background: linear-gradient(to top, rgba(10, 10, 20, 1), transparent);*/
    pointer-events: none;
    z-index: 2;
}

/* CGFM Section styling */
#cgfm {
    background: linear-gradient(135deg, #0a0a14 0%, #16213e 100%);
}

/* Transmute section styling */
#transmute {
    background: linear-gradient(135deg, #16213e 0%, #0a0a14 100%);
    position: relative;
}

#transmute::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: var(--primary);
}

/* New hero particles effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* ALFIE Neural Network Visualization */
.alfie-visual {
    background: rgba(10, 10, 20, 0.3);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 173, 181, 0.2);
    overflow: hidden;
    position: relative;
}

.alfie-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.alfie-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.brain-visualization {
    margin-bottom: 20px;
}

.brain-visualization .node {
    fill: var(--primary);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.brain-visualization .node:hover {
    fill: var(--text-accent);
    opacity: 1;
    r: 10;
}

.brain-visualization .node.input-node {
    fill: #4cc9f0;
}

.brain-visualization .node.output-node {
    fill: #f72585;
}

.brain-visualization .connection {
    stroke: var(--primary);
    stroke-width: 1;
    stroke-opacity: 0.2;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        stroke-opacity: 0.2;
    }
    50% {
        stroke-opacity: 0.8;
    }
}

.data-flow-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Feature icon improvements */
.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-glow);
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

/* Technology Matrix Background */
.tech-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: repeating-linear-gradient(0deg, var(--primary), var(--primary) 1px, transparent 1px, transparent 30px),
                      repeating-linear-gradient(90deg, var(--primary), var(--primary) 1px, transparent 1px, transparent 30px);
    z-index: -1;
}

/* Founder card improvements */
.founder-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.founder-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.8s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 173, 181, 0.3);
    border: 1px solid rgba(0, 173, 181, 0.3);
}

.founder-card:hover::after {
    left: 100%;
}

.founder-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.founder-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-glow);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.founder-card:hover .founder-image-glow {
    opacity: 0.7;
}

.founder-social a {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.founder-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.founder-status {
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CC9F0;
    margin-right: 5px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Vision metrics styling */
.vision-metrics {
    margin-top: 40px;
}

.metric-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 173, 181, 0.3);
    border: 1px solid rgba(0, 173, 181, 0.3);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.metric-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Call to action button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #008c91);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.6);
}

.cta-button:hover::after {
    transform: translateX(100%);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Fix for Bootstrap navbar toggler outline */
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Ensure hamburger icon is visible */
.navbar-toggler .fas {
    color: white;
    font-size: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00c2cc;
}

/* Animated Background Grid */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 173, 181, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 173, 181, 0.05) 1px, transparent 1px);
    z-index: -2;
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Better text selection */
::selection {
    background: var(--primary);
    color: white;
    text-shadow: none;
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.8rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    nav .navbar-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        max-height: 0;
    }
    
    nav .navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        max-height: 300px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .feature {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 1rem;
    }
    
    nav .logo {
        font-size: 1.5rem;
    }
    
    #hero h1 {
        font-size: 1.8rem;
    }
    
    #hero .discover-more {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 5%;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    footer {
        padding: 30px 5%;
    }
}

/* Dark mode toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.theme-toggle::before {
    content: '☀️';
    position: absolute;
    left: 5px;
    font-size: 1rem;
}

.theme-toggle::after {
    content: '🌙';
    position: absolute;
    right: 5px;
    font-size: 1rem;
}

.theme-toggle-slider {
    position: absolute;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.theme-toggle.active .theme-toggle-slider {
    left: 35px;
}

/* Contact form styling */
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.3);
}

.contact-form button {
    background: linear-gradient(135deg, var(--primary), #008c91);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
}

/* Animated background dots */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.background-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-glow);
    opacity: 0.3;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    z-index: 1001;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Also update these styles later in the file if they exist */
.nav-link:visited,
.nav-link:active,
.navbar-nav .nav-link:visited,
.navbar-nav .nav-link:active {
    color: whitesmoke !important;
}

.nav-link.interactive:visited,
.nav-link.interactive:active {
    color: whitesmoke !important;
}

/* Remove any potential additional underlines for specific pages */
#cgfm h2::before,
#alfie h2::before {
    display: none;
}

/* Ensure a single underline in CGFM and ALFIE sections */
#cgfm h2::after,
#alfie h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary);
    /* No additional styling for double underline */
}

/* Enhanced Grid Background and Tech Matrix for CGFM page */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 173, 181, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 173, 181, 0.05) 1px, transparent 1px);
    z-index: -2;
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Tech Matrix Background */
.tech-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: repeating-linear-gradient(0deg, var(--primary), var(--primary) 1px, transparent 1px, transparent 30px),
                      repeating-linear-gradient(90deg, var(--primary), var(--primary) 1px, transparent 1px, transparent 30px);
    z-index: -1;
}

/* Data Particles Enhancement */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Enhanced hero particles effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Application Card styling for CGFM page */
.application-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.application-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 173, 181, 0.3);
    border: 1px solid rgba(0, 173, 181, 0.3);
}

.application-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,173,181,0.1), transparent);
    transition: all 1s ease;
}

.application-card:hover::after {
    top: 100%;
}

/* AI Circuit enhancement */
.ai-circuit {
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('/D:/NEW PROJECTS/ptyped main site prototype/media/circuit-pattern.png');
    opacity: 0.05;
    z-index: -1;
}

.ai-circuit.top-left {
    top: 0;
    left: 0;
}

.ai-circuit.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* CGFM specific styling for consistent futuristic look */
#cgfm-hero, 
#learn-more,
.py-20,
.py-16 {
    position: relative;
    overflow: hidden;
}

#cgfm-hero::before,
#learn-more::before,
.py-20::before,
.py-16::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,173,181,0.1) 0%, rgba(0,0,0,0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Enhanced section transitions for CGFM page */
section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* Enhanced feature cards for CGFM page */
.feature {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 173, 181, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(0,173,181,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature:hover::before {
    opacity: 1;
}

/* FAQ styling enhancement for CGFM page */
.mb-6 {
    background: rgba(22, 33, 62, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 173, 181, 0.05);
    transition: all 0.3s ease;
}

.mb-6:hover {
    background: rgba(22, 33, 62, 0.5);
    border-color: rgba(0, 173, 181, 0.2);
    transform: translateX(5px);
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    animation: gridPulse 10s infinite ease-in-out;
}

.tech-matrix, .circuit-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.tech-matrix {
    background: radial-gradient(circle, transparent 20%, rgba(10, 15, 30, 0.7) 100%);
}

.circuit-pattern {
    background-image: url('/media/circuit-pattern.svg');
    background-repeat: repeat;
    background-size: 800px;
    opacity: 0.05;
}

.section-container {
    position: relative;
    padding: 5rem 0;
    z-index: 1;
}

.content-block {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-block:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    margin: 2rem 0;
}

.section-header {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-header:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
}

@keyframes gridPulse {
    0% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.15;
    }
}

/* Remove hover effects for CGFM heading */
h1.cgfm-heading,
h1.cgfm-heading:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 225, 255, 0.5);
}

/* Space effect - make the heading appear to float in space */
h1.cgfm-heading {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 10px 20px;
    color: #fff;
}

/* Remove hover effects for CGFM heading - Enhanced specificity */
h1.cgfm-heading,
h1.cgfm-heading:hover,
.cgfm-heading,
.cgfm-heading:hover,
#cgfm h1.cgfm-heading,
#cgfm h1.cgfm-heading:hover,
#cgfm-hero h1.cgfm-heading,
#cgfm-hero h1.cgfm-heading:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 225, 255, 0.5);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important; /* Remove any padding */
    margin: 0 !important; /* Reset margins */
}

/* Space effect - make the heading appear to float in space without background */
h1.cgfm-heading,
.cgfm-heading,
#cgfm h1.cgfm-heading,
#cgfm-hero h1.cgfm-heading {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    color: #fff !important;
}

/* Override any content-block styling if it's applied to the heading */
.content-block.cgfm-heading,
.content-block.cgfm-heading:hover,
.content-block h1.cgfm-heading,
.content-block h1.cgfm-heading:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Override any container styling that might be affecting the heading */
.cgfm-heading-container,
#cgfm .cgfm-heading-container,
#cgfm-hero .cgfm-heading-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ALFIE Bot Icon */
.alfie-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.alfie-bot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #008c91);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.alfie-bot-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.6);
}

.alfie-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}

.alfie-icon-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
    border-radius: 50%;
    z-index: -1;
}

.alfie-icon-inner i {
    font-size: 1.2rem;
}

.alfie-bot-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}
