/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #0a0a0a;
    --primary-color: #ffffff;
    --secondary-color: #888888;
    --accent-gradient: linear-gradient(90deg, #4f46e5, #c026d3);
    --card-bg: #111111;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- CUSTOM CURSOR --- */
.cursor {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 9999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor.grow {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--accent-gradient);
    border: none;
    opacity: 0.5;
}

/* --- HEADER --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: -1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(192, 38, 211, 0.3);
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.scroll-indicator .arrow {
    width: 2px;
    height: 30px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% { transform: translateY(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* --- GENERAL CONTENT SECTIONS --- */
.content-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}


/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* --- ABOUT/PROCESS SECTION --- */
.process-wrapper {
    margin-top: 5rem;
    position: relative;
}
.process-wrapper::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.5;
    background: var(--bg-color);
    padding: 0 1rem 0 0;
    z-index: 2;
    transition: color 0.3s ease;
}

.process-step:hover .step-number {
    color: var(--primary-color);
    opacity: 1;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* --- WORK SECTION --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 400px;
}
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work-item:hover img {
    transform: scale(1.05);
}
.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.work-item:hover .work-overlay {
    opacity: 1;
}
.work-overlay h3 {
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}
.work-overlay p {
    color: var(--secondary-color);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}
.work-item:hover .work-overlay h3,
.work-item:hover .work-overlay p {
    transform: translateY(0);
}

/* --- CONTACT SECTION --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.form-group {
    position: relative;
    flex: 1 1 45%;
}
.form-group.full-width {
    flex: 1 1 100%;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #4f46e5;
}
.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--secondary-color);
    pointer-events: none;
    transition: all 0.3s ease;
}
.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0 0.25rem;
    background: var(--bg-color);
    color: #4f46e5;
}
.contact-form .cta-button {
    margin: 1rem auto 0;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    padding: 3rem 0;
    background-color: var(--card-bg);
    margin-top: -1px; /* Overlap border */
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
footer p {
    color: var(--secondary-color);
}
.social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* --- ANIMATIONS --- */
.animate-on-load {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}
.animate-on-load:nth-child(1) { animation-delay: 0.2s; }
.animate-on-load:nth-child(2) { animation-delay: 0.4s; }
.animate-on-load:nth-child(3) { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.animate-on-scroll:nth-of-type(2) { transition-delay: 0.1s; }
.service-card.animate-on-scroll:nth-of-type(3) { transition-delay: 0.2s; }
.service-card.animate-on-scroll:nth-of-type(4) { transition-delay: 0.0s; }
.service-card.animate-on-scroll:nth-of-type(5) { transition-delay: 0.1s; }
.service-card.animate-on-scroll:nth-of-type(6) { transition-delay: 0.2s; }
.service-card.animate-on-scroll:nth-of-type(7) { transition-delay: 0.0s; }
.service-card.animate-on-scroll:nth-of-type(8) { transition-delay: 0.1s; }
.service-card.animate-on-scroll:nth-of-type(9) { transition-delay: 0.2s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    #main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        gap: 1rem;
    }
    nav a {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }

    .process-wrapper::before {
        left: 25px;
    }
    .step-number {
        font-size: 2rem;
    }
    .step-content h3 {
        font-size: 1.5rem;
    }

    .contact-form {
        gap: 0;
    }
    .form-group {
        flex-basis: 100%;
        margin-bottom: 1.5rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
    .social-links a {
        margin: 0 0.75rem;
    }
}


.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.client-logo img {
  max-height: 100px;
  max-width: 100%;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: grayscale(100%);
}

.client-logo img:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: none;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 2rem;
}
