/* 
   DevKala - Marvel Inspired Theme
   Colors: Cosmic Navy, Black, Crimson Red, Arc-Reactor Gold
   Fonts: Anton/Bebas (Headers), Inter/Montserrat (Body)
*/

:root {
    /* Colors */
    --color-bg-deep: #05070F;
    --color-bg-navy: #0B1228;
    --color-accent-red: #E10600;
    --color-accent-gold: #F5C542;
    --color-text-main: #FFFFFF;
    --color-text-muted: #AAB2C8;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Fonts */
    --font-heading: 'Anton', 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent-red);
}

.text-highlight {
    color: var(--color-accent-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-accent-red);
    color: white;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.5);
}

.btn-primary:hover {
    background-color: #ff1a1a;
    box-shadow: 0 0 25px rgba(225, 6, 0, 0.8);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 1rem;
}

.btn-secondary {
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    background: transparent;
}

.btn-secondary:hover {
    background-color: rgba(245, 197, 66, 0.1);
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.4);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    background: rgba(11, 18, 40, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-accent-red);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--color-accent-red);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #02040a 0%, #0b1228 100%);
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.rotating-text-container {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent-gold);
    margin-bottom: 50px;
    height: 60px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-text {
    display: inline-block;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rotating-text.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-text.exit {
    opacity: 0;
    transform: translateY(-30px);
}

.hero-cta-group {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 40px;
}

/* About Section */
.about-section {
    background: var(--color-bg-navy);
    position: relative;
    padding: 120px 0;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
    margin-top: -50px;
    z-index: 10;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    height: 500px;
    background: #111;
    border: 4px solid white;
    box-shadow: 15px 15px 0 var(--color-accent-red);
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.about-visual:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(225, 6, 0, 0.2), transparent);
    z-index: 2;
}

.visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80&w=1000') center/cover;
    filter: grayscale(80%) contrast(120%);
}

.visual-content h3 {
    background: var(--color-accent-red);
    color: white;
    padding: 10px 20px;
    transform: skew(-10deg);
    font-size: 2rem;
    z-index: 3;
}

.about-content h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1;
}

.comic-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-accent-gold);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.comic-box p {
    color: var(--color-text-muted);
}

/* Services Section */
.services-section {
    background: var(--color-bg-deep);
    padding: 150px 0 100px;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: rgba(11, 18, 40, 0.6);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    background: rgba(11, 18, 40, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--color-accent-gold);
    transition: transform 0.4s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 20px rgba(245, 197, 66, 0.6);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: var(--color-bg-navy);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 5px;
    /* Slight */
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 2px solid var(--color-accent-gold);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 2rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
    /* delay */
}

.portfolio-overlay p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Vision & Values Section - Enhanced */
.vision-section {
    background: var(--color-bg-navy);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vision-image {
    position: relative;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -20px 20px 0 var(--color-accent-gold);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.vision-image:hover {
    transform: rotate(0deg);
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-bg-navy), transparent);
    z-index: 1;
}

.vision-content h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.vision-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 3px solid var(--color-accent-red);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.value-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

/* Testimonials Section - Scrolling Marquee */
.testimonials-section {
    padding: 100px 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(to right, #0b1228, #182038);
    overflow: hidden;
}

.testimonials-slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: testimonial-scroll 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: white;
    color: var(--color-bg-deep);
    padding: 40px;
    position: relative;
    border-radius: 20px 20px 20px 0;
    box-shadow: 10px 10px 0 var(--color-accent-red);
    width: 400px;
    /* Fixed width for slider */
    flex-shrink: 0;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 40px;
    height: 40px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

@keyframes testimonial-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-400px * 6 - 40px * 6));
    }

    /* card width + gap * count */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
}

.animate-active {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Slider Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.6);
    /* Darken slider */
    background: linear-gradient(to bottom, rgba(5, 7, 15, 0.3), var(--color-bg-deep));
    z-index: 1;
}

/* Marquee Styles */
.marquee-section {
    background: var(--color-accent-red);
    color: white;
    padding: 20px 0;
    /* Increased padding */
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg) scale(1.1);
    /* Increased scale for better coverage */
    z-index: 50;
    /* High z-index to sit on top */
    border-top: 5px solid var(--color-accent-gold);
    border-bottom: 5px solid var(--color-accent-gold);
    margin: -30px 0;
    /* Negative margin to pull sections behind */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    /* Stronger shadow */
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    padding-right: 50px;
    display: inline-block;
    color: white;
    text-shadow: 3px 3px 0px black;
    letter-spacing: 4px;
    /* Added spacing */
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer - Premium Marvel Design */
.main-footer {
    background: linear-gradient(to top, #000000, var(--color-bg-navy));
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid rgba(225, 6, 0, 0.3);
    margin-top: 50px;
}

/* Tech Border Effect */
.main-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--color-accent-gold);
    box-shadow: 0 0 15px var(--color-accent-gold), 0 0 30px var(--color-accent-red);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Brand Column */
.brand-col .footer-logo {
    font-size: 4rem;
    background: -webkit-linear-gradient(var(--color-text-main), var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: 4px;
    display: inline-block;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 350px;
    border-left: 3px solid var(--color-accent-red);
    padding-left: 15px;
}

/* Headers */
.footer-col h3 {
    color: var(--color-accent-gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent-red);
    box-shadow: 0 0 8px var(--color-accent-red);
}

/* Quick Links */
.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.links-col ul li a::before {
    content: '>';
    color: var(--color-accent-red);
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.links-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.links-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social Icons - Hexagons */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent-gold);
    font-weight: 800;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(245, 197, 66, 0.2);
}

.social-icon:hover {
    background: var(--color-accent-red);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.6);
    border-color: var(--color-accent-red);
}

.contact-email {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

/* System Status */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-gold);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    background: rgba(245, 197, 66, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(245, 197, 66, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 8px #00ff00;
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 2px #00ff00;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 8px #00ff00;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: white;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 2001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background: white;
        margin: 6px 0;
        transition: 0.3s;
    }

    /* Mobile Menu Overlay - Redesigned */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 7, 15, 0.98);
        /* Deep cosmic background */
        backdrop-filter: blur(15px);
        z-index: 2000;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        /* Removed gap, using padding instead */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu.active {
        display: flex;
        opacity: 1;
    }

    .mobile-menu a {
        font-size: 2.5rem;
        font-family: var(--font-heading);
        color: white;
        text-transform: uppercase;
        position: relative;
        padding: 20px 0;
        /* Larger touch targets */
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separators */
        transition: all 0.3s ease;
    }

    .mobile-menu a:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-accent-gold);
        letter-spacing: 2px;
        /* Expand on hover */
    }

    /* Stack adjustments */
    .about-grid,
    .contact-grid,
    .vision-container {
        grid-template-columns: 1fr !important;
    }

    .about-visual,
    .vision-image {
        height: 300px;
        margin-bottom: 40px;
    }

    .vision-image {
        margin-top: 40px;
    }

    /* Space it out */

    .about-section {
        clip-path: none;
        margin-top: 0;
        padding-bottom: 60px;
    }

    .services-section {
        padding-top: 60px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        width: 300px;
        /* Smaller card for mobile slider */
        padding: 30px;
    }

    @keyframes testimonial-scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 6 - 40px * 6));
        }
    }

    .contact-form {
        width: 100%;
        padding: 20px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .brand-col .footer-logo {
        margin-bottom: 10px;
    }

    .footer-tagline {
        margin: 0 auto;
        max-width: 100%;
        border-left: none;
        border-bottom: 2px solid var(--color-accent-red);
        padding-bottom: 15px;
        padding-left: 0;
        display: inline-block;
    }

    /* Adjust marquee for mobile scale */
    .marquee-section {
        transform: rotate(-2deg) scale(1.15);
        margin: -20px 0;
        padding: 15px 0;
    }

    .marquee-content span {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}