html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* CSS Variables - Dark Theme (Default) */
:root {
    --dark-bg: #0a0000;
    --darker-bg: #050000;
    --card-bg: #110000;
    --border-color: #1a0000;
    --neon-red: #ff0000;
    --blood-red: #8b0000;
    --scarlet: #dc143c;
    --crimson: #dc143c;
    --neon-white: #ffffff;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #ff0033;
    --terminal-red: #ff0000;
    --matrix-red: #ff0000;
    --cyber-red: #ff0000;
    --shadow-red: rgba(255, 0, 0, 0.3);
    --neon-green: #33ff00;
}

/* Light Theme Variables */
[data-theme="light"] {
    --dark-bg: #f5f5f5;
    --darker-bg: #e8e8e8;
    --card-bg: #ffffff;
    --border-color: #d1d1d1;
    --neon-red: #28a745;
    --blood-red: #1e7e34;
    --scarlet: #155724;
    --crimson: #0f4c1a;
    --neon-white: #000000;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-color: #007bff;
    --terminal-red: #28a745;
    --matrix-red: #28a745;
    --cyber-red: #17a2b8;
    --shadow-red: rgba(40, 167, 69, 0.15);
    --neon-green: #28a745;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background: var(--card-bg);
    border: 2px solid var(--neon-red);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--shadow-red), 0 0 20px rgba(255, 0, 0, 0.5);
    margin-left: 1rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.theme-toggle:hover {
    box-shadow: 0 0 15px var(--shadow-red);
    transform: scale(1.05);
}

.theme-toggle::before {
    content: '🌙';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 1002;
}

.theme-toggle::after {
    content: '☀️';
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1002;
}

.theme-toggle .toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    background: var(--neon-red);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-red);
    z-index: 1003;
}

[data-theme="light"] .theme-toggle::before {
    opacity: 0;
}

[data-theme="light"] .theme-toggle::after {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .toggle-slider {
    left: calc(100% - 19px);
    background: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

/* Theme transition for smooth switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

body {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(255, 0, 0, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255, 0, 0, 0.1) 100%);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Terminal-style scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-red);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scarlet);
    box-shadow: 0 0 15px var(--scarlet);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-red);
    z-index: 1000;
    box-shadow: 0 0 20px var(--shadow-red);
}

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

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

.logo-text {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    letter-spacing: 2px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px var(--neon-red); }
    100% { text-shadow: 0 0 20px var(--neon-red), 0 0 30px var(--neon-red); }
}

.logo-subtext {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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


.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 10px var(--shadow-red);
    text-shadow: 0 0 5px var(--neon-red);
}

.nav-link::before {
    content: '>';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--neon-red);
}

.nav-link:hover::before {
    opacity: 1;
    left: -15px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neon-red);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-red);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
    animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Courier New', monospace;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    animation: titleFlicker 3s ease-in-out infinite;
}

@keyframes titleFlicker {
    0%, 100% { text-shadow: 0 0 20px var(--neon-red); }
    50% { text-shadow: 0 0 30px var(--neon-red), 0 0 40px var(--neon-red); }
}

.hero-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: auto;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    font-family: 'Courier New', monospace;
    padding: 1rem 2rem;
    border: 2px solid;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    border-color: var(--neon-red);
    color: var(--neon-red);
    box-shadow: 0 0 20px var(--shadow-red);
}

.btn-primary:hover {
    background: var(--neon-red);
    color: var(--dark-bg);
    box-shadow: 0 0 30px var(--neon-red);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--blood-red);
    color: var(--blood-red);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--blood-red);
    color: var(--neon-white);
    box-shadow: 0 0 30px var(--blood-red);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-red);
    text-shadow: 0 0 15px var(--neon-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

/* Services Section */
.services {
    background: var(--darker-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transform: translateY(0); /* Reset for animation */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
#projects {
    padding: 6rem 0;
    background: var(--dark-bg); /* Adjusted to match dark-bg */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease-out;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--neon-red);
    box-shadow: 0 10px 40px var(--shadow-red);
}

.project-card h3 {
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

.project-icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* About Section */
#about {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.stat-number {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services List Styling (for detail pages/tabs) */
.service-detail-section {
    display: none; /* Hidden by default */
    padding: 3rem 0;
    background: var(--dark-bg); /* Consistent with overall theme */
    position: relative;
    min-height: 70vh; /* Ensure some height for content */
}

.service-detail-section.active {
    display: block; /* Show when active */
}

.services-list-container {
    margin: 2rem auto;
    max-width: 900px;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.services-list-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-red);
    animation: bloodFlow 3s ease-in-out infinite;
}

@keyframes bloodFlow {
    0%, 100% { 
        transform: scaleX(0); 
        opacity: 0.8;
    }
    50% { 
        transform: scaleX(1); 
        opacity: 1;
    }
}

.services-list-title {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.services-list-title::before {
    content: '>';
    position: absolute;
    left: -20px;
    color: var(--neon-red);
    animation: terminalBlink 1s ease-in-out infinite;
}

/* Services Categories */
.services-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.services-category:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--shadow-red);
}

.category-title {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--neon-red);
    text-shadow: 0 0 8px var(--neon-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
}

.category-title::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-red);
    animation: terminalBlink 1.5s ease-in-out infinite;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

.services-list li {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-list li::before {
    content: '>';
    position: absolute;
    left: 6px;
    color: var(--neon-red);
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--neon-red);
}

.services-list li:hover {
    color: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 15px var(--shadow-red);
    transform: translateX(5px);
    text-shadow: 0 0 5px var(--neon-red);
    animation: listItemFlicker 0.3s ease-in-out;
}

.services-list li:hover::before {
    opacity: 1;
    left: 10px;
}

@keyframes listItemFlicker {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px var(--shadow-red); }
    50% { opacity: 0.9; box-shadow: 0 0 20px var(--neon-red); }
}

.services-list li:nth-child(odd) { animation-delay: 0.1s; }
.services-list li:nth-child(even) { animation-delay: 0.2s; }

/* Services Note Section */
.services-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--neon-red);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.services-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-red), var(--blood-red), var(--neon-red));
    animation: noteGlow 2s ease-in-out infinite;
}

@keyframes noteGlow {
    0%, 100% { opacity: 0.8; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.note-title {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 25px;
}

.note-title::before {
    content: '!';
    position: absolute;
    left: 0;
    color: var(--neon-red);
    animation: warningBlink 1s ease-in-out infinite;
    font-weight: bold;
}

@keyframes warningBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.services-note p {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.services-note strong {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--shadow-red);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h4 {
    font-family: 'Courier New', monospace;
    color: var(--neon-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 0 20px var(--shadow-red);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-family: 'Courier New', monospace;
    color: var(--neon-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
}

.contact-form label::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-red);
    animation: terminalBlink 1s ease-in-out infinite;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-red);
    box-shadow: 0 0 15px var(--shadow-red), inset 0 0 8px rgba(255, 0, 0, 0.3);
}

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

.contact-method-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-method-group label {
    padding-left: 0; /* Override default label padding */
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.contact-method-group label::before {
    content: '';
    position: static; /* Remove absolute positioning */
    margin-right: 5px; /* Spacing for custom radio */
    width: 12px;
    height: 12px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.contact-method-group input[type="radio"] {
    display: none; /* Hide default radio button */
}

.contact-method-group input[type="radio"]:checked + label::before {
    background-color: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 8px var(--shadow-red);
}

.contact-method-group input[type="radio"]:checked + label {
    color: var(--neon-red);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--neon-red);
    color: var(--dark-bg);
    border: 2px solid var(--neon-red);
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px var(--shadow-red);
}

.contact-form button[type="submit"]:hover {
    background: var(--blood-red);
    border-color: var(--blood-red);
    box-shadow: 0 0 30px var(--blood-red);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--neon-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--neon-red);
}

/* Redroom effect elements */
.redroom-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--neon-red);
    border-radius: 50%;
    opacity: 0;
    animation: floatAndFade 10s infinite ease-in-out;
}

.red-particle {
    background: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red);
    animation: redParticleFloat 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes floatAndFade {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    25% { opacity: 0.5; }
    50% { transform: translateY(-50vh) scale(1); opacity: 1; }
    75% { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

@keyframes redParticleFloat {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-20px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.6; }
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideDown 0.5s forwards, fadeOut 0.5s forwards 4.5s;
    position: relative;
    overflow: hidden;
}

.notification.info {
    border-color: var(--neon-red);
    box-shadow: 0 0 15px var(--shadow-red);
}

.notification.success {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(51, 255, 0, 0.2);
}

.notification.error {
    border-color: var(--blood-red);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Media Queries for Responsiveness */
@media (max-width: 720px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(10, 0, 0, 0.98);
        border-top: 1px solid var(--neon-red);
        padding: 1rem 0;
        box-shadow: 0 10px 20px var(--shadow-red);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001; /* Ensure it's above menu when open */
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content, .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 80%;
        max-width: 300px;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

/* General styles for service detail sections */
.service-detail-section {
    position: absolute; /* Position absolute to overlay main content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg); /* Use dark background */
    padding-top: 6rem; /* Account for fixed navbar */
    overflow-y: auto; /* Enable scrolling for content */
    z-index: 999; /* Ensure it's above other sections but below navbar */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.5s ease-out; /* Slide in/out animation */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.service-detail-section.active {
    transform: translateX(0); /* Slide into view */
    display: block; /* Ensure it's rendered for animation */
}

/* Styles for a back button within detail sections */
.back-button {
    background: var(--neon-red);
    color: var(--dark-bg);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 0 15px var(--shadow-red);
}

.back-button:hover {
    background: var(--blood-red);
    box-shadow: 0 0 25px var(--blood-red);
    transform: translateY(-2px);
}

/* Content within detail sections */
.service-detail-content {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2.5rem;
    box-shadow: 0 0 20px var(--shadow-red);
}

.service-detail-content h2 {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.service-detail-content p {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-detail-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.service-detail-content ul li {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    position: relative;
}

.service-detail-content ul li::before {
    content: '>>';
    position: absolute;
    left: -20px;
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}

.service-detail-content strong {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}

.service-detail-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px var(--shadow-red);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    max-width: 100%;
}







/* From Uiverse.io by cssbuttons-io */ 
button {
 --glow-color: var(--neon-red);
 --glow-spread-color: var(--shadow-red);
 --enhanced-glow-color: var(var(--neon-white):);
 --btn-color: var(--dark-bg);
 border: .25em solid var(--glow-color);
 padding: 1em 3em;
 color: var(--neon-red);
 font-size: 15px;
 font-weight: bold;
 background-color: var(--btn-color);
 border-radius: 1em;
 outline: none;
 box-shadow: 0 0 1em .25em var(--glow-color),
        0 0 4em 1em var(--glow-spread-color),
        inset 0 0 .75em .25em var(--glow-color);
 text-shadow: 0 0 .5em var(--glow-color);
 position: relative;
 transition: all 0.3s;
}

button::after {
 pointer-events: none;
 content: "";
 position: absolute;
 top: 120%;
 left: 0;
 height: 100%;
 width: 100%;
 background-color: var(--glow-spread-color);
 filter: blur(2em);
 opacity: .7;
 transform: perspective(1.5em) rotateX(35deg) scale(1, .6);
}

button:hover {
 color: var(--btn-color);
 background-color: var(--glow-color);
 box-shadow: 0 0 1em .25em var(--glow-color),
        0 0 4em 2em var(--glow-spread-color),
        inset 0 0 .75em .25em var(--glow-color);
}

button:active {
 box-shadow: 0 0 0.6em .25em var(--glow-color),
        0 0 2.5em 2em var(--glow-spread-color),
        inset 0 0 .5em .25em var(--glow-color);
}


/* Global strong tag styling */
strong {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
    font-weight: bold;
    transition: all 0.3s ease;
}

strong:hover {
    text-shadow: 0 0 10px var(--neon-red), 0 0 15px var(--neon-red);
    animation: strongGlow 0.5s ease-in-out;
}

@keyframes strongGlow {
    0%, 100% { text-shadow: 0 0 10px var(--neon-red); }
    50% { text-shadow: 0 0 20px var(--neon-red), 0 0 30px var(--scarlet); }
}





/* CONTACT FORM*/

@media (max-width: 958px){
    .contact .contact-content{ 
        grid-template-columns: 1fr; /* Это правило уже есть */
        gap: 1.5rem; /* Уменьшаем отступ между элементами для узких экранов */
        padding: 0 10px; /* Дополнительный внутренний отступ, чтобы контент не прилипал к краям .contact-content */
        box-sizing: border-box; 
    }
    .contact-info,
    .contact-form {
        width: 100%; /* Занимаем всю доступную ширину */
        box-sizing: border-box; /* Крайне важно для элементов с padding */
        min-width: 0; /* Позволяем этим элементам сетки сжиматься, если их содержимое слишком широкое */
    }
    .contact-form {
        padding: 1rem; /* Уменьшаем padding формы с 2rem до 1rem для очень узких экранов */
    }
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box; /* Это тоже важно для инпутов, чтобы padding не выталкивал их за 100% */
    }

    .contact-item {
        gap: 0.5rem; /* Уменьшаем отступ между иконкой и текстом на мобильных */
        padding: 1rem; /* Уменьшаем внутренние отступы карточки на мобильных (с 1.5rem) */
        box-sizing: border-box; /* Убедитесь, что это установлено для всех элементов, чтобы padding не выталкивал */
        min-width: 0; /* Позволяем карточке сжиматься, если необходимо */
    }

    .contact-icon {
        /* Главное изменение: убираем или уменьшаем min-width */
        min-width: auto; /* Позволяем ширине иконки определяться её содержимым (размером шрифта) */
        /* Или, если вам нужен минимальный размер, сделайте его меньше, например: min-width: 30px; */

        font-size: 1.5rem; /* Можно также уменьшить размер шрифта иконки, если она все равно большая */
        flex-shrink: 0; /* Убедимся, что сама иконка не сжимается, если ее контент это позволяет */
    }

    /* Убедимся, что текст рядом с иконкой может переноситься */
    .contact-item h4,
    .contact-item p {
        word-wrap: break-word; /* Перенос длинных слов */
        overflow-wrap: break-word; /* Еще одно свойство для переноса длинных слов */
        flex-shrink: 1; /* Позволяем тексту сжиматься */
        min-width: 0; /* Позволяем текстовому блоку сжиматься */
    }
    .contact-method-options {
        flex-direction: column; /* Размещаем опции вертикально, одну под другой */
        gap: 0.8rem; /* Уменьшаем вертикальный отступ между опциями */
        width: 100%; /* Убеждаемся, что контейнер занимает всю доступную ширину */
        box-sizing: border-box; /* Важно, чтобы padding не выталкивал за границы */
    }

    .contact-method-option {
        width: 100%; /* Каждая опция занимает всю доступную ширину при вертикальном расположении */
        flex: none; /* Отменяем flex: 1;, чтобы ширина определялась свойством width: 100% */
        padding: 0.8rem 1rem; /* Корректируем горизонтальный padding для более узких экранов (был 1.2rem) */
        box-sizing: border-box; /* Убеждаемся, что padding включен в ширину */
    }

    /* Если иконки внутри contact-method-option все еще выглядят слишком большими */
    .contact-method-option .option-icon {
        font-size: 1.2rem; /* Уменьшаем размер иконок, если это необходимо */
        /* min-width здесь, скорее всего, не нужен, т.к. его нет в исходном CSS для .option-icon */
    }
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--shadow-red);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h4 {
    font-family: 'Courier New', monospace;
    color: var(--neon-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-link {
    color: var(--neon-red);
    text-decoration: none;
    text-shadow: 0 0 5px var(--neon-red);
    transition: all 0.3s ease;
    font-weight: bold;
}

.contact-link:hover {
    text-shadow: 0 0 10px var(--neon-red), 0 0 15px var(--neon-red);
    animation: linkGlow 0.5s ease-in-out;
}

@keyframes linkGlow {
    0%, 100% { 
        text-shadow: 0 0 5px var(--neon-red);
    }
    50% { 
        text-shadow: 0 0 15px var(--neon-red), 0 0 25px var(--neon-red);
    }
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-red);
    box-shadow: 0 0 10px var(--shadow-red);
}

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

/* Contact Method Options */
.contact-method-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--neon-red);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-method-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-method-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.contact-method-option:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 10px var(--shadow-red);
}

.contact-method-option input[type="radio"] {
    display: none;
}

.contact-method-option input[type="radio"]:checked + .option-icon + .option-text {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}

.contact-method-option input[type="radio"]:checked ~ * {
    color: var(--neon-red);
}

.option-icon {
    font-size: 1.2rem;
}

.option-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
