/*
Theme: AI With Attitude
Colors: 
  - Neon Blue: #00FFFF
  - Magenta: #FF00C8
  - Charcoal: #111111
  - Light Grey: #f0f0f0
Fonts:
  - Headers: Orbitron
  - Body: Space Mono
*/

/* ------------------- */
/* 1. CSS Variables    */
/* ------------------- */
:root {
    --charcoal: #111111;
    --neon-blue: #00ffff;
    --magenta: #ff00c8;
    --text-light: #e0e0e0;
    --text-dark: #333;
    --border-color: rgba(0, 255, 255, 0.2);
    --background-accent: #1a1a1a;

    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Space Mono', monospace;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* ------------------- */
/* 2. Base Styles & Reset */
/* ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--charcoal);
    color: var(--text-light);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--magenta), var(--neon-blue));
}

.section-subtitle {
    max-width: 700px;
    margin: 15px auto 0;
    color: #aaa;
}

.text-center {
    text-align: center;
}

/* ------------------- */
/* 3. Custom Cursor    */
/* ------------------- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-blue);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 255, 0.2);
    transition: all 0.1s;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

a:hover~.cursor-outline,
.btn:hover~.cursor-outline,
button:hover~.cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 0, 200, 0.3);
}

a:hover~.cursor-dot,
.btn:hover~.cursor-dot,
button:hover~.cursor-dot {
    width: 0;
    height: 0;
}

/* ------------------- */
/* 4. Preloader        */
/* ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--charcoal);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 130px;
    animation: pulse 2s infinite;
}

.preloader-logo img {
    filter: drop-shadow(0 0 15px var(--neon-blue)) brightness(0) invert(1);
}

.preloader-text {
    margin-top: 20px;
    color: var(--text-light);
    font-family: var(--font-secondary);
    letter-spacing: 2px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ------------------- */
/* 5. Header & Navigation */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 15px 0;
}

.header.scrolled {
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    filter: drop-shadow(0 0 10px var(--neon-blue)) brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(360deg);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 5px var(--neon-blue);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

/* ------------------- */
/* 6. Buttons & CTA    */
/* ------------------- */
.btn {
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--neon-blue);
    color: var(--charcoal);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue) inset;
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--charcoal);
    box-shadow: 0 0 15px #fff, 0 0 30px #fff inset;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--magenta);
    border-color: var(--magenta);
}

.btn-secondary:hover {
    background-color: var(--magenta);
    color: #fff;
    box-shadow: 0 0 15px var(--magenta);
    transform: translateY(-3px);
}

/* Glitch Effect Button */
.glitch {
    position: relative;
    color: var(--charcoal);
}

.glitch span {
    position: relative;
    z-index: 2;
}


.glitch:before {
    left: -2px;
    text-shadow: 1px 0 var(--magenta);
}

.glitch:after {
    left: 2px;
    text-shadow: -1px 0 var(--neon-blue);
}

.glitch:hover:before {
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
}

.glitch:hover:after {
    animation: glitch-anim-2 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    100% {
        clip: rect(2px, 9999px, 92px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(12px, 9999px, 99px, 0);
    }

    100% {
        clip: rect(78px, 9999px, 62px, 0);
    }
}


/* ------------------- */
/* 7. Hero Section     */
/* ------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, #222 0%, var(--charcoal) 70%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    max-width: 60%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
}

.highlight-magenta {
    color: var(--magenta);
    text-shadow: 0 0 10px var(--magenta);
}

.cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    color: var(--neon-blue);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 2rem 0;
    max-width: 800px;
    color: #bbb;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* 3D Cube */
.hero-3d-object {
    perspective: 1000px;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    backdrop-filter: blur(5px);
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes spin {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ------------------- */
/* 8. Services Section */
/* ------------------- */
.services-section {
    background-color: var(--background-accent);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, var(--charcoal), transparent);
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(0deg, var(--charcoal), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: transparent;
    perspective: 1000px;
    height: 350px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #1f1f1f, #151515);
    transition: background 0.3s, border 0.3s;
}

.service-card-front {
    z-index: 2;
}

.service-card:hover .service-card-front {
    border-color: var(--magenta);
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.3);
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #2a0021, #1a0015);
    border-color: var(--magenta);
}

.service-icon {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.service-card-back h4 {
    color: var(--magenta);
    font-family: var(--font-secondary);
}

.service-card-back p {
    font-style: italic;
    color: #ddd;
}

/* ------------------- */
/* 9. Why Us Section   */
/* ------------------- */
.why-us-section {
    background: var(--charcoal);
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-accent);
}

.chat-message {
    display: flex;
    margin-bottom: 20px;
    /* FIX: Opacity is now handled by JS to prevent visibility issues */
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
}

.chat-message.user .chat-bubble {
    background-color: var(--magenta);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.chat-message.ai .chat-bubble {
    background-color: #2c2c2c;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-bottom-left-radius: 5px;
}

.emoji {
    display: inline-block;
    transform: scale(1.2);
    margin-left: 5px;
}

/* ------------------- */
/* 10. Testimonials    */
/* ------------------- */
.testimonials-section {
    background: var(--background-accent);
    position: relative;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #151515;
}

.testimonial-content {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #ccc;
}

.testimonial-author h4 {
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #888;
    font-size: 0.9rem;
}

.ai-comment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    color: var(--magenta);
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.slider-controls button {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: var(--neon-blue);
    color: var(--charcoal);
}

/* ------------------- */
/* 11. Stats Section   */
/* ------------------- */
.stats-section {
    background-color: var(--charcoal);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-accent);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 255, 255, 0.3), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--background-accent);
    border-radius: var(--border-radius);
}

.stat-number,
.stat-label {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--neon-blue);
    margin-bottom: 10px;
}

.stat-label {
    color: #aaa;
}

.sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none'/%3e%3cpath d='M0 15 C 20 5, 40 25, 60 15 S 100 5, 120 15' stroke='%2300FFFF' stroke-width='2' stroke-dasharray='5%2c 5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}


/* ------------------- */
/* 12. Page Headers    */
/* ------------------- */
.page-header-section {
    padding: 150px 0 100px;
    text-align: center;
    background: var(--background-accent);
    position: relative;
}

#particles-js-contact {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-header-section .container {
    position: relative;
    z-index: 1;
}

.page-header-desc {
    font-size: 1.2rem;
    color: #bbb;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-top: 20px;
    color: #888;
}

.breadcrumbs a {
    color: #ccc;
}

.breadcrumbs .fa-chevron-right {
    font-size: 0.8rem;
    margin: 0 10px;
}

/* ------------------- */
/* 13. Contact Page    */
/* ------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--background-accent);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-panel h3 {
    color: var(--neon-blue);
}

.contact-info-panel p {
    margin: 15px 0 30px;
    color: #bbb;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--magenta);
    margin-top: 5px;
}

.contact-details-list h4 {
    margin-bottom: 5px;
    color: #fff;
}

/* Contact Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-secondary);
    color: #ccc;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #111;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-secondary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.btn-full {
    width: 100%;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--background-accent);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--neon-blue);
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.popup h3 {
    color: #fff;
}

.popup p {
    margin: 15px 0 30px;
    color: #bbb;
}


/* ------------------- */
/* 14. Legal Pages     */
/* ------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--background-accent);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--neon-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content p,
.legal-content li {
    margin-bottom: 15px;
    color: #bbb;
}

.legal-content strong {
    color: var(--magenta);
}

/* ------------------- */
/* 15. Footer          */
/* ------------------- */
.footer {
    background-color: var(--background-accent);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--neon-blue);
}

.footer-about-text {
    margin: 20px 0;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--neon-blue);
    color: var(--charcoal);
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-contact i {
    margin-top: 5px;
    color: var(--magenta);
}

.footer-contact a {
    color: #aaa;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #888;
}

/* ------------------- */
/* 16. Animations      */
/* ------------------- */
/* FIX: Removed the .animate-in class rule. JS will now handle the initial state. */

/* ------------------- */
/* 17. Responsiveness  */
/* ------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-3d-object {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .header {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(17, 17, 17, 0.9);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-toggle,
    .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slide {
        padding: 20px;
    }

    .testimonial-content {
        font-size: 1rem;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
    }

    .nav-menu {
        width: 100%;
    }
}