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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* Dark theme with glitch elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 0, 0, 0.03),
            rgba(255, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 64, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    transform: translateY(0) !important;
}

.nav {
    padding: 1rem 0;
}

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

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff0040 0%, #ff0080 50%, #8000ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

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

.nav-link {
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ff0040;
    text-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff0040, #ff0080);
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ff0040;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(255, 0, 64, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0000 0%, #330011 50%, #000033 100%);
    color: white;
    padding: 0 20px;
    margin-top: -80px;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(128, 0, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 0, 64, 0.05) 10px,
            rgba(255, 0, 64, 0.05) 20px
        );
    animation: glitch 10s infinite;
    pointer-events: none;
}

@keyframes glitch {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff0040 0%, #ff80ff 50%, #8000ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 64, 0.8);
    animation: textGlitch 5s infinite;
}

@keyframes textGlitch {
    0%, 100% { 
        text-shadow: 0 0 30px rgba(255, 0, 64, 0.8);
        transform: translate(0, 0);
    }
    25% { 
        text-shadow: -2px 0 #ff0080, 2px 0 #8000ff;
        transform: translate(-2px, 0);
    }
    50% { 
        text-shadow: 2px 0 #8000ff, -2px 0 #ff0040;
        transform: translate(2px, 0);
    }
    75% { 
        text-shadow: 0 0 30px rgba(255, 0, 64, 0.8);
        transform: translate(0, 0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #ff0040 0%, #ff0080 100%);
    color: white;
    border: 1px solid rgba(255, 0, 64, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 64, 0.8);
    background: linear-gradient(135deg, #ff0080 0%, #ff0040 100%);
}

.btn-secondary {
    background: transparent;
    color: #ff0040;
    border: 2px solid #ff0040;
}

.btn-secondary:hover {
    background: #ff0040;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid rgba(255, 0, 64, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.2);
}

.hero-graphic {
    width: 400px;
    height: 400px;
    background: rgba(255, 0, 64, 0.1);
    border: 2px solid rgba(255, 0, 64, 0.3);
    border-radius: 20px;
    position: relative;
    animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, rgba(255, 0, 64, 0.2), rgba(128, 0, 255, 0.2));
    border-radius: 15px;
    animation: rotate 10s linear infinite;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 0, 64, 0.5); }
    to { box-shadow: 0 0 40px rgba(255, 0, 64, 0.8), 0 0 60px rgba(128, 0, 255, 0.5); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0000 0%, #1a0011 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 64, 0.02),
        rgba(255, 0, 64, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ff0040 0%, #ff80ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ff0040 0%, #ff80ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

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

.stat {
    text-align: center;
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 64, 0.3);
    border-color: rgba(255, 0, 64, 0.6);
}

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #ff0040;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
}

.stat p {
    color: #b0b0b0;
}

.about-graphic {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.2) 0%, rgba(128, 0, 255, 0.2) 100%);
    border: 2px solid rgba(255, 0, 64, 0.3);
    border-radius: 20px;
    position: relative;
    animation: float 6s ease-in-out infinite, glow 4s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0000 0%, #000011 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 64, 0.02),
        rgba(255, 0, 64, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 0, 64, 0.3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.4);
    border-color: rgba(255, 0, 64, 0.6);
    background: rgba(20, 0, 10, 0.9);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 64, 0.5));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ff0040 0%, #ff80ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: #b0b0b0;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0000 0%, #110011 100%);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(128, 0, 255, 0.02),
        rgba(128, 0, 255, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(128, 0, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(128, 0, 255, 0.4);
    border-color: rgba(128, 0, 255, 0.6);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    background: linear-gradient(135deg, #8000ff 0%, #ff00ff 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(128, 0, 255, 0.5);
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, #8000ff 0%, #ff80ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-content p {
    color: #b0b0b0;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.contact-item p {
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.message {
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0000 0%, #000011 100%);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 0, 64, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 0, 64, 0.02),
        rgba(255, 0, 64, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff0040 0%, #ff80ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ff0040;
    text-shadow: 0 0 5px rgba(255, 0, 64, 0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 0, 64, 0.3);
    border-color: #ff0040;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.6);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 0, 64, 0.2);
    color: #888;
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 9999;
    }
    
    .nav {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .hero {
        margin-top: -60px;
        padding-top: 60px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: #0a0a0a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    body.light-mode .nav-menu {
        background: white;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 20px;
    }

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

    .hero-graphic {
        width: 300px;
        height: 300px;
    }

    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .services {
        padding: 4rem 0;
    }

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

    .portfolio {
        padding: 4rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .network {
        padding: 4rem 0 6rem 0;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Light Mode Styles */
body.light-mode {
    color: #333333;
    background: #ffffff;
}

body.light-mode::before {
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 0, 64, 0.01),
            rgba(255, 0, 64, 0.01) 1px,
            transparent 1px,
            transparent 2px
        );
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(255, 0, 64, 0.1);
}

body.light-mode .nav-link {
    color: #666666;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: #ff0040;
    text-shadow: 0 0 5px rgba(255, 0, 64, 0.3);
}

body.light-mode .hero {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e6 50%, #f0f8ff 100%);
    color: #333333;
}

body.light-mode .hero::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 64, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(128, 0, 255, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 0, 64, 0.02) 10px,
            rgba(255, 0, 64, 0.02) 20px
        );
}

body.light-mode .hero-title {
    background: linear-gradient(135deg, #ff0040 0%, #ff6080 50%, #6080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

body.light-mode .hero-subtitle {
    color: #666666;
}

body.light-mode .btn-primary {
    background: linear-gradient(135deg, #ff0040 0%, #ff0080 100%);
    color: white;
    border: 1px solid rgba(255, 0, 64, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

body.light-mode .btn-secondary {
    background: transparent;
    color: #ff0040;
    border: 2px solid #ff0040;
}

body.light-mode .btn-secondary:hover {
    background: #ff0040;
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

body.light-mode .about {
    background: linear-gradient(135deg, #fff8f8 0%, #faf0f5 100%);
}

body.light-mode .about::before {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 64, 0.01),
        rgba(255, 0, 64, 0.01) 1px,
        transparent 1px,
        transparent 2px
    );
}

body.light-mode .section-header h2 {
    background: linear-gradient(135deg, #ff0040 0%, #ff6080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .section-header p {
    color: #666666;
}

body.light-mode .about-text h3 {
    background: linear-gradient(135deg, #ff0040 0%, #ff6080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .about-text p {
    color: #555555;
}

body.light-mode .stat {
    background: rgba(255, 0, 64, 0.05);
    border: 1px solid rgba(255, 0, 64, 0.2);
}

body.light-mode .stat:hover {
    box-shadow: 0 10px 25px rgba(255, 0, 64, 0.15);
    border-color: rgba(255, 0, 64, 0.4);
}

body.light-mode .stat p {
    color: #666666;
}

body.light-mode .services {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

body.light-mode .services::before {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 64, 0.01),
        rgba(255, 0, 64, 0.01) 10px,
        transparent 10px,
        transparent 20px
    );
}

body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 0, 64, 0.2);
    color: #333333;
}

body.light-mode .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.2);
    border-color: rgba(255, 0, 64, 0.4);
    background: rgba(255, 245, 245, 0.95);
}

body.light-mode .service-card h3 {
    background: linear-gradient(135deg, #ff0040 0%, #ff6080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .service-card p {
    color: #666666;
}

body.light-mode .portfolio {
    background: linear-gradient(135deg, #fff8f8 0%, #faf0f5 100%);
}

body.light-mode .portfolio::before {
    background: repeating-linear-gradient(
        -45deg,
        rgba(128, 0, 255, 0.01),
        rgba(128, 0, 255, 0.01) 10px,
        transparent 10px,
        transparent 20px
    );
}

body.light-mode .portfolio-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(128, 0, 255, 0.2);
    color: #333333;
}

body.light-mode .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(128, 0, 255, 0.2);
    border-color: rgba(128, 0, 255, 0.4);
}

body.light-mode .portfolio-content h3 {
    background: linear-gradient(135deg, #8000ff 0%, #ff80ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .portfolio-content p {
    color: #666666;
}

body.light-mode .portfolio-category {
    background: linear-gradient(135deg, #8000ff 0%, #ff00ff 100%);
    color: white;
    box-shadow: 0 0 10px rgba(128, 0, 255, 0.3);
}

body.light-mode .network {
    background: linear-gradient(135deg, #fff8f8 0%, #faf0f5 100%);
}

body.light-mode .network::before {
    background: 
        radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(128, 0, 255, 0.02) 0%, transparent 50%);
}

body.light-mode .footer {
    background: linear-gradient(135deg, #fff8f8 0%, #faf0f5 100%);
    color: #333333;
    border-top: 1px solid rgba(255, 0, 64, 0.2);
}

body.light-mode .footer::before {
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 0, 64, 0.01),
        rgba(255, 0, 64, 0.01) 1px,
        transparent 1px,
        transparent 2px
    );
}

body.light-mode .footer-section h3,
body.light-mode .footer-section h4 {
    background: linear-gradient(135deg, #ff0040 0%, #ff6080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .footer-section a {
    color: #666666;
}

body.light-mode .footer-section a:hover {
    color: #ff0040;
    text-shadow: 0 0 3px rgba(255, 0, 64, 0.3);
}

body.light-mode .social-links a {
    background: rgba(255, 0, 64, 0.05);
    border: 1px solid rgba(255, 0, 64, 0.2);
}

body.light-mode .social-links a:hover {
    background: rgba(255, 0, 64, 0.15);
    border-color: #ff0040;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.3);
}

body.light-mode .footer-bottom {
    color: #888888;
}

/* Warning Modal Light Mode */
body.light-mode .warning-modal {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .warning-content {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(255, 0, 64, 0.3);
    box-shadow: 0 20px 60px rgba(255, 0, 64, 0.15);
}

body.light-mode .warning-content h2 {
    color: #ff0040;
}

body.light-mode .warning-content p {
    color: #666666;
}

body.light-mode .warning-content ul {
    color: #555555;
}

body.light-mode .warning-buttons .btn-secondary {
    background: rgba(255, 0, 64, 0.05);
    color: #666666;
    border: 1px solid rgba(255, 0, 64, 0.2);
}

body.light-mode .warning-buttons .btn-secondary:hover {
    background: rgba(255, 0, 64, 0.1);
    color: #ff0040;
}

/* Twitter Quotes Light Mode */
body.light-mode .twitter-quotes {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .quote-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(29, 161, 242, 0.2);
}

body.light-mode .quote-card:hover {
    border-color: rgba(29, 161, 242, 0.4);
    box-shadow: 0 15px 35px rgba(29, 161, 242, 0.1);
}

body.light-mode .quote-content {
    color: #555555;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 0, 64, 0.1);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: #ff0040;
    transition: all 0.3s ease;
}

body.light-mode .theme-toggle:hover {
    background: rgba(255, 0, 64, 0.05);
}

body.light-mode .theme-toggle i {
    color: #ff0040;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0000 0%, #330011 50%, #000033 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
}

body.light-mode .loading-screen {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e6 50%, #f0f8ff 100%);
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ff0040 0%, #ff80ff 50%, #8000ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 0, 64, 0.8);
    animation: titleGlow 2s ease-in-out infinite alternate, titleFloat 3s ease-in-out infinite;
}

body.light-mode .loading-title {
    background: linear-gradient(135deg, #ff0040 0%, #ff6080 50%, #6080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.4);
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(255, 0, 64, 0.8));
        transform: scale(1);
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 40px rgba(255, 0, 64, 1));
        transform: scale(1.05);
    }
}

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

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #ff0040;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

body.light-mode .loading-progress {
    background: rgba(255, 0, 64, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0040, #ff80ff, #8000ff);
    border-radius: 2px;
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Background particles for loading screen */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(128, 0, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 0, 64, 0.05) 10px,
            rgba(255, 0, 64, 0.05) 20px
        );
    animation: backgroundMove 10s linear infinite;
}

body.light-mode .loading-screen::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 64, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(128, 0, 255, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 0, 64, 0.02) 10px,
            rgba(255, 0, 64, 0.02) 20px
        );
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Loading screen fade out */
.loading-screen.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

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

    .loading-progress {
        width: 200px;
        margin: 0 auto;
    }
}

/* Network Diagram Styles */
.network {
    padding: 80px 0 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

.network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(128, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.network-diagram {
    margin-top: 50px;
}

.network-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.network-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #4a90e2;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.network-canvas {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.network-element {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.network-element:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
    border-color: #6bb6ff;
}

.network-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.network-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
    text-align: center;
}

.internet-cloud {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #87ceeb;
}

.internet-cloud .network-icon {
    font-size: 2.5rem;
}

.router {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #ffa500;
}

.switch {
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #8000ff;
}

.pc {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #00ff7f;
}

.server {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #ff4500;
}

.laptop {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #1e90ff;
}

.mobile {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(30, 30, 30, 0.9));
    border-color: #ff1493;
}

.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.network-lines line {
    stroke-dasharray: 5, 5;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Responsive Network Diagram */
@media (max-width: 768px) {
    .network-canvas {
        height: 500px;
    }
    
    .network-element {
        min-width: 80px;
        padding: 10px 15px;
    }
    
    .network-icon {
        font-size: 1.5rem;
    }
    
    .network-label {
        font-size: 0.8rem;
    }
    
    /* Adjust positions for mobile */
    .network-element.internet-cloud { top: 20px; left: 50%; transform: translateX(-50%); }
    .network-element.router { top: 100px; left: 50%; transform: translateX(-50%); }
    .network-element.switch { top: 180px; left: 50%; transform: translateX(-50%); }
    .network-element.pc { top: 260px; left: 10%; }
    .network-element.server { top: 340px; left: 30%; }
    .network-element.laptop { top: 260px; left: 60%; }
    .network-element.mobile { top: 340px; left: 70%; }
}

@media (max-width: 480px) {
    .network-canvas {
        height: 450px;
    }
    
    .network-title {
        font-size: 1.4rem;
    }
    
    .network-container {
        padding: 20px;
    }
}

/* Network Information Cards */
.network-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px;
}

.network-info-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.network-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.network-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4a90e2;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.info-list li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: #4a90e2;
    font-weight: 600;
}

/* Network Sublabel */
.network-sublabel {
    font-size: 0.75rem;
    color: #a0a0a0;
    text-align: center;
    margin-top: 3px;
}

/* Network Legend */
.network-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.legend-line {
    width: 40px;
    height: 2px;
    background: #4a90e2;
}

.legend-line.solid {
    background: #4a90e2;
}

.legend-line.dashed {
    background: linear-gradient(to right, #4a90e2 50%, transparent 50%);
    background-size: 10px 2px;
}

/* Network Specifications */
.network-specs {
    margin-top: 50px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 15px;
    padding: 35px;
}

.network-specs h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #4a90e2;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.spec-item {
    background: rgba(30, 30, 30, 0.5);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #4a90e2;
}

.spec-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #6bb6ff;
}

.spec-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d0d0d0;
}

/* Responsive Adjustments for New Elements */
@media (max-width: 768px) {
    .network-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .network-specs {
        padding: 25px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .network-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .network-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .network-specs {
        padding: 25px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .network-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .network-info-card {
        padding: 20px;
    }
    
    .info-icon {
        font-size: 2rem;
    }
    
    .network-info-card h3 {
        font-size: 1.1rem;
    }
    
    .network-specs h3 {
        font-size: 1.5rem;
    }
    
    .spec-item {
        padding: 15px;
    }
}
