:root {
    --color-bg: #0e1116;
    --color-bg-light: #161b22;
    --color-text: #f0f6fc;
    --color-text-muted: #8b949e;
    --color-primary: #da3633; /* Corporate Red */
    --color-primary-hover: #ff5050;
    --color-primary-dark: #a01c1a;
    --color-secondary: #ffffff;
    --color-glass: rgba(22, 27, 34, 0.85);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: -0.5px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

.highlight {
    color: var(--color-primary);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-glass-border);
    padding: 10px 0;
}

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

.logo img {
    height: 40px;
    transition: var(--transition);
}

.logo img:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

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

.nav-links a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 17, 22, 0.9) 0%, rgba(30, 8, 8, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px; /* Tech/Industrial edge */
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
}

.btn-primary:hover {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(5px);
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(230, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.dark-bg {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.about-image {
    flex: 1;
}

.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: 4px; /* Tech edge */
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.glass-card p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

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

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 4px; /* Tech edge */
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.1);
    border-color: rgba(230, 0, 0, 0.3);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(200%);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    filter: none;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    display: block;
    background: var(--color-bg-light);
    border-radius: 4px; /* Tech edge */
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
    transition: var(--transition);
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border-color: var(--color-primary);
}

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(60%) contrast(1.2);
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.project-info {
    padding: 25px;
    background: var(--color-bg-light);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-glass-border);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--color-primary);
}

.project-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item .icon {
    font-size: 1.5rem;
    filter: grayscale(100%);
}

.contact-item a {
    font-size: 1.2rem;
    color: var(--color-text);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 4px; /* Tech edge */
    background: var(--color-bg);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: 4px; /* Tech edge */
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-glass-border);
    border-radius: 4px; /* Tech edge */
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: #090a0c;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 30px;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
}

.footer-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Animations & Responsiveness */
@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-bottom.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Mobile Responsive */
@media screen and (max-width: 968px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section {
        padding: 70px 0;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding: 30px 0;
        border-bottom: 1px solid var(--color-glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }
    
    .btn-primary {
        display: block;
    }
}

/* Form Submission Enhancements */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

