/* CSS Reset & Variables */
:root {
    --primary-red: #e31e25;
    --primary-red-dark: #c0171d;
    --primary-red-light: #ff3b42;
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-lighter: #2a2a2a;
    --white: #ffffff;
    --white-off: #f5f5f5;
    --gray: #888888;
    --gray-dark: #444444;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --red-glow: 0 0 20px rgba(227, 30, 37, 0.5);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--black-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(to right, var(--white) 60%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 3.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-red);
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.5rem;
    color: var(--white);
}

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

.gradient-text {
    background: linear-gradient(to right, var(--primary-red) 0%, var(--primary-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--black-light);
}

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

.text-center {
    text-align: center;
}

.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
}

.page-header-content {
    text-align: center;
}

.page-header h1 {
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-red-dark) 0%, var(--black) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--red-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline::before {
    background: var(--primary-red);
}

.btn-outline:hover {
    color: var(--white);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 30px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--primary-red);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

/* Hero Section */
.hero {
    padding-top: 200px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 30px;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(227, 30, 37, 0.3); }
    100% { text-shadow: 0 0 20px rgba(227, 30, 37, 0.7); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #aaaaaa;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.hero-visual {
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    perspective: 1000px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.tech-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--primary-red);
    box-shadow: var(--red-glow);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.services-grid.detailed {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.service-card {
    background: linear-gradient(145deg, var(--black-light), var(--black-lighter));
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    border-left: 5px solid var(--primary-red);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card.detailed {
    padding: 60px 50px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(227, 30, 37, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(227, 30, 37, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-red);
}

.service-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.service-features {
    margin: 30px 0;
}

.service-features h4 {
    margin-bottom: 20px;
    color: var(--primary-red);
}

.service-features ul {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cccccc;
}

.service-features i {
    color: var(--primary-red);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    gap: 15px;
    color: var(--primary-red-light);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border: 1px solid rgba(227, 30, 37, 0.1);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: var(--black-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: var(--red-glow);
}

.project-header {
    height: 250px;
    background: linear-gradient(45deg, var(--black), var(--primary-red-dark));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50%) translateY(-50%); }
}

.project-header i {
    font-size: 4rem;
    color: white;
    z-index: 1;
    position: relative;
}

.project-content {
    padding: 40px;
}

/* Technology Showcase */
.tech-showcase {
    background: var(--black-light);
    border-radius: var(--radius-xl);
    padding: 60px;
    margin-top: 40px;
}

.tech-stack-intro {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-category.detailed {
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-category.detailed:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.tech-category-icon {
    width: 80px;
    height: 80px;
    background: rgba(227, 30, 37, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.tech-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tech-item.detailed {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tech-item.detailed:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    background: rgba(227, 30, 37, 0.05);
}

.tech-item-icon {
    width: 60px;
    height: 60px;
    background: rgba(227, 30, 37, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.tech-item-content {
    flex: 1;
}

.tech-item-content h4 {
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(227, 30, 37, 0.1);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(227, 30, 37, 0.3);
}

/* Tech Categories */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tech-category h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.tech-list li:hover {
    background: rgba(227, 30, 37, 0.05);
    border-left-color: var(--primary-red);
    transform: translateX(10px);
}

.tech-list i {
    color: var(--primary-red);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content h2::after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-section .btn {
    background: var(--black);
    color: white;
    border: 2px solid white;
}

.cta-section .btn:hover {
    background: white;
    color: var(--primary-red);
}

/* Footer */
footer {
    background: var(--black-light);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(227, 30, 37, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-red);
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
    font-family: 'Orbitron', sans-serif;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777777;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 15px;
}

.footer-legal a {
    color: #aaaaaa;
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }
    .hero-content { gap: 40px; }
}

@media (max-width: 992px) {
    .container { padding: 0 30px; }
    .hero-content { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .tech-showcase, .service-card.detailed { padding: 40px 30px; }
    .services-grid.detailed { grid-template-columns: 1fr; }
    .tech-items-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .section { padding: 80px 0; }
    .page-header { padding: 150px 0 80px; }
    .projects-grid, .services-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; }
    .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.8rem; }
    .tech-category-header { flex-direction: column; text-align: center; }
    .tech-item.detailed { flex-direction: column; text-align: center; }
    .tech-item-icon { margin: 0 auto; }
}