
/* CSS Variables for Theme */
:root {
    --bg-primary: #000000;
    --bg-secondary: #141414;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #e50914;
    --accent-hover: #b8070f;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-focus: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: rgba(0, 0, 0, 0.08);
    --bg-card-hover: rgba(0, 0, 0, 0.12);
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent-color: #e50914;
    --accent-hover: #b8070f;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-color-focus: rgba(0, 0, 0, 0.2);
}

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

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header and Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo h2 {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

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

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.8)),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

[data-theme="light"] .hero {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.9)),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(229, 9, 20, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

[data-theme="light"] .hero::before {
    background: linear-gradient(45deg, rgba(229, 9, 20, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title i {
    color: #e50914;
    margin-right: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #b3b3b3;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-subtitle i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.cta-button i {
    margin-right: 0.5rem;
}

.cta-button {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] .about {
    background: 
        linear-gradient(rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.95)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}

[data-theme="light"] .about {
    background: 
        linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}

.about h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.about-text {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .feature {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.projects h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

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

.project {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .project {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project:hover {
    transform: translateY(-12px);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 50px rgba(229, 9, 20, 0.2);
}

.project.featured {
    grid-column: span 2;
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(229, 9, 20, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] .services {
    background: 
        linear-gradient(rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.95)),
        url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}

[data-theme="light"] .services {
    background: 
        linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)),
        url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}

.services h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

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

.service {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .service {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

.service-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.service p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

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

.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-details i,
.contact-info h3 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .contact-form {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.submit-button {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #b8070f;
}

.submit-button:disabled {
    background: #666;
    cursor: not-allowed;
}

.error-message {
    color: #e50914;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Honeypot field - hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

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

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

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

.social-links a i {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.contact-email {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding-top: 3rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project.featured {
        grid-column: span 1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .feature h3 {
        font-size: 1.2rem;
    }
    
    .feature p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .submit-button {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .about, .projects, .services, .contact {
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .logo h2 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
    
    .social-links {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}
