:root {
    --bg-color: #030712;
    /* Very dark almost black blue */
    --text-color: #f8fafc;
    --text-light: #94a3b8;
    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-secondary: #06b6d4;
    /* Cyan */
    --accent-gradient: linear-gradient(135deg, #7c3aed, #2563eb);
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --spacing-section: 100px;
    --spacing-element: 24px;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    /* Complex background: Main gradient + Grid overlay */
    background-image:
        linear-gradient(rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.7)),
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        radial-gradient(circle at 50% 0%, #312e81 0%, #030712 60%);
    background-size: 100% 100%, 60px 60px, 60px 60px, 100% 100%;
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.125rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.25rem;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-nav {
    padding: 10px 24px;
    background: #fff;
    color: #000 !important;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #f1f5f9;
    color: var(--accent-primary) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    text-align: center;
}

.hero-headline {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subheadline {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* About Section */
.about-section {
    padding: var(--spacing-section) 0;
    background-color: transparent;
}

.about-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.about-card p {
    font-size: 1.35rem;
    color: #e2e8f0;
    line-height: 1.8;
    font-weight: 300;
}

/* Services Section */
.services-section {
    padding: var(--spacing-section) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    backdrop-filter: blur(12px);
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    background: rgba(30, 41, 59, 0.7);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #cbd5e1;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--spacing-section) 0;
    /* Removed redundant background since body has the main bg */
}

.portfolio-category {
    margin-bottom: 120px;
    /* Increased from 80px */
}

.portfolio-category h3 {
    margin-bottom: 30px;
    font-size: 1.75rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-speed);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

/* Specific placeholder colors for visual distinction */
.video-placeholder {
    background: linear-gradient(45deg, #1e1b4b, #312e81);
}

.web-placeholder {
    background: linear-gradient(45deg, #0f172a, #1e293b);
}

.graphic-placeholder {
    background: linear-gradient(45deg, #111827, #374151);
}

.portfolio-thumb::after {
    content: attr(data-label);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-item h4 {
    padding: 20px 20px 5px;
    margin-bottom: 5px;
    color: #fff;
}

.portfolio-item .project-desc {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Feedback Section */
.feedback-section {
    padding: var(--spacing-section) 0;
    text-align: center;
}

.feedback-placeholder {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background-color: rgba(30, 41, 59, 0.5);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.1));
    color: #fff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--card-border);
}

.cta-section h2 {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.cta-section .btn {
    background: #fff;
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.cta-section .btn:hover {
    background: #f8fafc;
    color: #4f46e5;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    background: #020617;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Websites Showcase Section */
.websites-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.website-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.web-project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-speed);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.web-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.browser-frame {
    width: 100%;
    background-color: #0f172a;
    border-bottom: 1px solid var(--card-border);
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid var(--card-border);
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.b-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.b-dot.red {
    background-color: #ff5f56;
}

.b-dot.yellow {
    background-color: #ffbd2e;
}

.b-dot.green {
    background-color: #27c93f;
}

.browser-url-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #94a3b8;
    flex-grow: 1;
    max-width: 300px;
}

.browser-content {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    pointer-events: none;
    /* Let the click pass through to the video, which handles the lightbox */
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.browser-content:hover .play-overlay {
    background: rgba(14, 165, 233, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.browser-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.web-project-info {
    padding: 24px;
}

.web-project-info h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.4rem;
}

.web-project-desc {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #94a3b8;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.1);
    color: #c4b5fd;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 4px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        gap: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        width: 60%;
        /* Takes just a little from the side */
        max-width: 300px;
        text-align: left;
        align-items: flex-start;
        padding: 80px 30px;
        /* Space for hamburger at top */
        transition: 0.3s ease-in-out;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .logo {
        margin-bottom: 0;
    }

    .hero-section {
        padding: 80px 0;
    }

    .about-card {
        padding: 30px;
    }

    .services-grid,
    .portfolio-grid,
    .website-video-grid {
        grid-template-columns: 1fr;
    }
}

/* Slideshow Container */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Hide images by default */
.slide {
    display: none;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    /* Limit height */
    object-fit: contain;
    background: #000;
}

/* Caption text */
.slide-caption {
    color: #fff;
    font-size: 1rem;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Dots */
.dots-container {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0);
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: linear-gradient(rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.7)),
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        radial-gradient(circle at 50% 0%, #312e81 0%, #030712 60%);
    ;
    box-shadow: 0 0 10px #312e81;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-secondary);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 15;
    text-decoration: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-secondary);
}

/* Testimonials Section */
.feedback-section {
    padding: 80px 0;
    background: #020617;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    flex: 0 1 calc(50% - 20px);
    max-width: none;
    width: auto;
    min-height: 350px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.quote-icon {
    color: var(--accent-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.author-role {
    color: #94a3b8;
    font-size: 0.85rem;
}