/*==========================================================
  ADVANCED CSS STYLES (styles.css)
==========================================================*/

/* 1. CSS Variables and Base Styles */
:root {
    --primary-color: #1a1a2e; /* Dark Blue/Black for background */
    --secondary-color: #16213e; /* Slightly lighter dark for elements */
    --accent-color: #ff3366; /* Vibrant Pink/Red for accents */
    --text-light: #e0e0e0; /* Light text on dark background */
    --text-dark: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Hide the default cursor */
    cursor: none !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: #ffffff;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
}

h1 span {
    color: var(--accent-color);
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed), opacity var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

ul {
    list-style: none;
}

section {
    padding: 100px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Subtitle and Section Header Styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 15px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.left-align {
    text-align: left;
}

.left-align p {
    margin-left: 0;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all var(--transition-speed);
    cursor: none; /* Handled by JS cursor */
    z-index: 10;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.outline-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.outline-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 2. Preloader and Cursor */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-container {
    text-align: center;
}

.logo-container .logo {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.loading-text {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s forwards 1s;
}

.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: exclusion; /* Blends nicely with the dark background */
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--text-light);
    transition: transform 0.1s ease-out;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-light);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hovered .cursor-follower {
    transform: scale(1.5);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    opacity: 0.5;
}

/* 3. Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(26, 26, 46, 0.95); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    z-index: 50;
    transition: background-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo svg {
    margin-right: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    color: #ffffff;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.nav-link.active, .nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.cta-nav-link {
    color: var(--accent-color);
    font-weight: 700;
}

.cta-nav-link:hover {
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: none;
    z-index: 60;
}

.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: var(--secondary-color);
    padding-top: 100px;
    z-index: 55;
    transition: right 0.4s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu .mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    display: block;
}

/* 4. Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0 40px;
    color: rgba(255, 255, 255, 0.7);
}

.cta-container a {
    margin-right: 15px;
}

/* Hero Graphics - Abstract Shapes */
.hero-graphics {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.hero-graphics .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--accent-color);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 10%;
    transform: rotate(45deg);
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: -150px;
    background: #0f1c3a;
    opacity: 0.05;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 40%;
    background: var(--text-light);
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(0, -20px); }
    100% { transform: translate(0, 0); }
}

/* 5. Services Section */
.services {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.order-button {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.order-button i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: margin-left 0.3s ease;
}

.order-button:hover i {
    margin-left: 15px;
}

/* 6. Work/Portfolio Section */
.work-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: none;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.work-item:hover .work-info {
    transform: translateY(0);
}

.work-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.work-info p {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.work-link {
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
}

/* 7. About Section */
.about {
    background-color: var(--primary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    opacity: 0.2;
    border-radius: 50%;
    top: -20px;
    left: -20px;
    z-index: -1;
}

.about-description {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* 8. Team Section */
.team {
    background-color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.member-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes image container square */
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-member:hover .member-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-social {
    opacity: 1;
}

.member-social a {
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.member-social a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* 9. Testimonials Section (Slider setup - JS will handle motion) */
.testimonials {
    background-color: var(--primary-color);
    padding: 80px 5%;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 20px;
}

.testimonial-content {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonial-prev, .testimonial-next {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: none;
    padding: 10px;
    transition: color 0.3s ease;
}

.testimonial-prev:hover, .testimonial-next:hover {
    color: var(--accent-color);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: var(--accent-color);
}

/* 10. Contact Section */
.contact {
    background-color: var(--secondary-color);
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info .section-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.6);
}

.info-item a {
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Form Styles - Advanced Label Animation */
.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: border-bottom-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
}

/* 11. Footer */
footer {
    background-color: #0d1222; /* Even darker footer */
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.footer-social-inline a {
    font-size: 1.1rem;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 15px;
}

/*==========================================================
  MEDIA QUERIES (Responsiveness)
==========================================================*/

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: 80vh;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .hero-graphics {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 50px;
        display: none; /* Hide complex shapes on small screens */
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        order: -1;
        max-width: 90%;
    }

    .about-text .section-header {
        text-align: center;
    }

    .about-text .section-header p {
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        max-width: 100%;
    }

    .footer-links {
        width: 100%;
        justify-content: space-around;
    }

    .footer-column {
        text-align: left;
        min-width: 150px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .footer-social-inline {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 500px) {
    .cta-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .cta-container a {
        margin-right: 0;
    }

    .cursor, .cursor-follower {
        display: none; /* Hide custom cursor on touch devices */
    }

    html {
        cursor: default !important;
    }
}

/* AOS Styles to match dark theme */
[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}
