/* =====================================================
   REAL 3D - Complete CSS Stylesheet
   Pure CSS for WordPress Integration
   ===================================================== */

/* CSS Variables / Design Tokens */
:root {
    --background: hsl(222, 47%, 6%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 8%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(185, 80%, 50%);
    --primary-foreground: hsl(222, 47%, 6%);
    --secondary: hsl(222, 30%, 15%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(222, 30%, 12%);
    --muted-foreground: hsl(215, 20%, 55%);
    --accent: hsl(35, 100%, 55%);
    --accent-foreground: hsl(222, 47%, 6%);
    --border: hsl(222, 30%, 18%);
    --input: hsl(222, 30%, 18%);
    --ring: hsl(185, 80%, 50%);
    --radius: 0.75rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(185, 80%, 50%), hsl(200, 80%, 40%));
    --gradient-accent: linear-gradient(135deg, hsl(35, 100%, 55%), hsl(25, 100%, 50%));
    --gradient-dark: linear-gradient(180deg, hsl(222, 47%, 6%), hsl(222, 47%, 4%));
    --gradient-card: linear-gradient(135deg, hsl(222, 47%, 10%), hsl(222, 47%, 8%));
    --gradient-glow: radial-gradient(ellipse at center, hsla(185, 80%, 50%, 0.15), transparent 70%);

    /* Shadows */
    --shadow-glow: 0 0 60px hsla(185, 80%, 50%, 0.3);
    --shadow-card: 0 25px 50px -12px hsla(0, 0%, 0%, 0.5);
    --shadow-elevated: 0 20px 40px hsla(0, 0%, 0%, 0.4);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px hsla(185, 80%, 50%, 0.3);
}

.btn-hero:hover {
    box-shadow: 0 0 40px hsla(185, 80%, 50%, 0.5);
    transform: translateY(-2px);
}

.btn-hero-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-hero-outline:hover {
    background: hsla(210, 40%, 98%, 0.1);
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsla(222, 47%, 6%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--foreground);
}

.header-cta {
    display: none;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.mobile-nav a {
    color: var(--muted-foreground);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .header-cta {
        display: block;
    }

    .menu-toggle {
        display: none;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
    hsla(222, 47%, 6%, 0.7),
    hsla(222, 47%, 6%, 0.5),
    var(--background)
    );
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: hsla(185, 80%, 50%, 0.1);
    border: 1px solid hsla(185, 80%, 50%, 0.3);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid hsla(222, 30%, 18%, 0.5);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services {
    position: relative;
    padding: 6rem 0;
}

.section-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.3;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.5s ease;
}

.service-card:hover {
    border-color: hsla(185, 80%, 50%, 0.5);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-8px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.5s ease;
}

.service-card:hover .service-icon {
    box-shadow: var(--shadow-glow);
}

.service-icon svg {
    color: var(--primary-foreground);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   PORTFOLIO SECTION
   ===================================================== */
.portfolio {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: var(--secondary);
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--foreground);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
    var(--background),
    hsla(222, 47%, 6%, 0.5),
    transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.portfolio-item.hidden {
    display: none;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    position: relative;
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, hsla(185, 80%, 50%, 0.2), transparent);
}

.about-floating-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--foreground);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .about-content h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: hsla(185, 80%, 50%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--primary);
}

.contact-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.contact-item a {
    color: var(--foreground);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.work-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-hour {
    display: flex;
    justify-content: space-between;
    color: var(--muted-foreground);
}

.work-time {
    color: var(--foreground);
}

.contact-form-wrapper {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(185, 80%, 50%, 0.2);
}

.form-group textarea {
    resize: none;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: 1 / -1;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--muted-foreground);
    max-width: 24rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    background: hsla(185, 80%, 50%, 0.1);
}

.footer-links h4,
.footer-services h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--foreground);
}

.footer-services li {
    color: var(--muted-foreground);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-legal a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}