/* Global Vars */
:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #ef781a;
    /* Deep Purple */
    --secondary-color: #e0aaff;
    --accent-color: #ef781a;
    /* Vibrant Pink/Red */
    --gradient-main: linear-gradient(135deg, #ef781a 0%, #ef781a 100%);
    --gradient-text: linear-gradient(90deg, #e0aaff, #ff9e00);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 4rem;
}

/* Typography Utilities */
.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 120, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 120, 26, 0.6);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--text-main);
}

.btn-text {
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Header & Nav */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.dot {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 80% 20%, rgba(239, 120, 26, 0.15), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(239, 120, 26, 0.1), transparent 40%);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content,
.about-visual {
    flex: 1;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.visual-card {
    height: 350px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0.2;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Services Section */
.section-header.center {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Marquee / Clients */
.clients {
    padding: 3rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    /* No animation on the container itself */
}

.marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem;
    min-width: 100%;
    padding-right: 4rem;
    /* Match gap for seamless loop */
    animation: scroll 30s linear infinite;
}

.marquee-content:hover .marquee-group {
    animation-play-state: paused;
}

/* Remove old padding note */

.client-logo {
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 1.5rem;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
        /* Move the entire group width */
    }
}

/* Footer (Basic) */
.footer {
    background: var(--card-bg);
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Parent Brand Section in Footer */
.footer-parent-brand {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-parent-text {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-parent-text a {
    color: var(--accent-color);
    font-weight: 500;
}

.footer-parent-text a:hover {
    text-decoration: underline;
}

.footer-parent-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.footer-parent-brand .social-links {
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }

    .nav-list.show {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-visual {
        display: none !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Page */
.page-header {
    background: radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.1), transparent 60%);
    padding-top: calc(var(--header-height) + 4rem);
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-muted);
}

.contact-map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    min-height: 400px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: invert(90%) hue-rotate(180deg);
    /* Simple dark map effect */
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 300px;
    }
}

.client-logo-img {
    max-height: 80px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-logo-img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.navbar .btn-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.navbar .btn-primary:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(239, 120, 26, 0.4);
}

.logo img {
    height: 140px;
    /* Adjust based on header height 80px */
    width: auto;
    vertical-align: middle;
}

.contact-card a {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent-color);
}

.footer-contact li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--accent-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Projects Page Styles */
.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.text-right {
    text-align: right;
}

/* Post Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square for posts usually */
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Identity Grid */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* Wider cards */
    gap: 2rem;
    margin-top: 2rem;
}

.identity-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.identity-card:hover {
    transform: translateY(-5px);
}

.identity-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    /* Landscape */
    background: #1a1a1a;
    overflow: hidden;
}

.identity-info {
    padding: 1.5rem;
}

.identity-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.identity-info p {
    color: var(--text-muted);
}

/* Reels Grid */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Video/Embed friendly width */
    gap: 1.5rem;
    margin-top: 2rem;
}

.reel-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    /* Remove scaling on hover that might break iframe interactions or look weird with white bg */
}

.reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.reel-wrapper {
    width: 100%;
    height: 600px;
    /* Fixed height for uniformity */
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    /* Hide excess length of embeds */
}

/* Ensure Instagram embed fits */
.reel-wrapper iframe {
    min-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: var(--transition);
}

.reel-card:hover .play-button {
    opacity: 1;
}

/* Placeholder Styling */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.2rem;
}

@media (max-width: 768px) {

    .project-grid,
    .identity-grid,
    .reels-grid {
        grid-template-columns: 1fr;
    }

    .identity-image-wrapper {
        aspect-ratio: 4/3;
        /* Taller on mobile might be better */
    }

    .text-right {
        text-align: left;
        /* Reset text align on mobile */
    }
}

/* --- Auth & Panel Styles --- */

/* Auth Page */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(239, 120, 26, 0.1), transparent 70%);
}

.auth-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    /* Space for icon */
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 1.5rem;
}

.text-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-sm:hover {
    color: var(--primary-color);
}

/* Panel Layout */
.panel-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar-header img {
    height: 30px;
    width: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(239, 120, 26, 0.1);
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.2rem;
}

.logout {
    margin-top: auto;
    color: #ff4757;
}

.logout:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.panel-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-color);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-radius);
    object-fit: cover;
}

.panel-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 800px;
}

.photo-upload-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.preview-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    border: 2px solid var(--card-bg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-light {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.input-light:focus {
    border-color: var(--primary-color);
}

.divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.link-icon.instagram {
    color: #e1306c;
}

.link-icon.whatsapp {
    color: #25D366;
}

.link-icon.location {
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .panel-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        height: auto;
    }

    .sidebar-header {
        margin: 0;
    }

    .sidebar-nav {
        display: none;
    }

    /* Hide nav on mobile for simplicity for now or add toggle */

    .form-grid {
        grid-template-columns: 1fr;
    }
}