/* LAYOUT STRUCTURE */

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo a {
    font-family: 'Syne', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.navbar__menu {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.navbar__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO SECTION */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__text {
    z-index: 10;
}

.hero__title {
    margin-bottom: 1rem;
    color: #fff;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero__cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
    height: 400px;
}

.hero__aura {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(circle at 35% 35%, rgba(124, 58, 237, 0.55), transparent 60%),
        radial-gradient(circle at 65% 65%, rgba(167, 139, 250, 0.35), transparent 60%);
    filter: blur(70px);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero__photo {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 5;
    width: min(340px, 80%);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SECTION STYLES */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* ABOUT SECTION */
.about {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about__text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-group {
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.skills-group h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-accent-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* WORK SECTION */
.work {
    background: var(--color-bg);
}

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

/* PROJECT CARDS */
.project-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.project-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card__number {
    font-family: 'Syne', serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(124, 58, 237, 0.2);
    display: block;
    margin-bottom: -0.5rem;
}

.project-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-card__meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card__description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.project-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent);
}

.stat__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card__clients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.client-badge {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-accent-light);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.project-card__link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
}

.project-card__link:hover {
    transform: translateX(4px);
    color: var(--color-accent-light);
}

/* CREATIVE GALLERY (product photos + ad creatives, mixed aspect ratios) */
.creative-gallery {
    margin-top: 3rem;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 5;
    background: var(--color-bg);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.photo-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* MOBILE MOCKUP GRID (phone-screenshot cards, e.g. checkout flow) */
.mobile-mockup-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
}

.mobile-mockup {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    aspect-ratio: 392 / 850;
    background: var(--color-bg);
    transition: border-color 0.3s ease, transform 0.3s ease;
    flex: 1 1 150px;
    max-width: 200px;
}

.mobile-mockup:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.mobile-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PROOF GALLERY (real screenshots: GSC, GA4, crawl, SERP) */
.proof-gallery {
    margin-top: 3rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.proof-item {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.proof-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.proof-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--color-border);
}

.proof-item__caption {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.proof-item__caption strong {
    color: #fff;
}

/* DETAIL STATS (highlight bar inside a project-detail section) */
.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.detail-stats .stat__value {
    font-size: 1.5rem;
}

/* PROJECT DETAIL */
.project-detail {
    background: var(--color-bg);
    scroll-margin-top: 100px;
}

.project-detail__header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-detail__header h2 {
    margin-bottom: 0.5rem;
}

.project-detail__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-detail__text h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.detail-list {
    list-style: none;
    margin-bottom: 2rem;
}

.detail-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text);
}

.detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* VIDEO GALLERY */
.video-gallery {
    margin-top: 3rem;
}

.gallery-title {
    margin-bottom: 2rem;
    color: #fff;
    font-size: 1.25rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    aspect-ratio: 9 / 16;
    background: var(--color-bg-secondary);
    transition: all 0.3s ease;
}

.video-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.video-item video,
.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--color-bg-secondary);
}

/* MOCKUP PREVIEW (featured video, unknown aspect ratio) */
.mockup-preview {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #000;
    overflow: hidden;
}

.mockup-preview video {
    width: 100%;
    max-height: 520px;
    display: block;
    object-fit: contain;
    background: #000;
}

/* PROCESS TIMELINE (meta project) */
.process-timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    margin-top: 2rem;
}

.process-step {
    display: flex;
    gap: 1.25rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.process-step:hover {
    border-color: var(--color-accent);
    transform: translateX(4px);
}

.process-step__number {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--color-accent-light);
    font-family: 'Syne', serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.process-step__body h4 {
    color: #fff;
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.process-step__body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.video-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-accent-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* TOOLBOX SECTION */
.toolbox {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.05) 100%);
}

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

.toolbox__grid--stack {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.toolbox__category {
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.toolbox__category h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-list li {
    font-size: 0.95rem;
    color: var(--color-text);
    padding-left: 1rem;
    position: relative;
}

.tool-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* CONTACT SECTION */
.contact {
    position: relative;
    overflow: hidden;
}

.contact__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact__content h2 {
    margin-bottom: 1rem;
    color: #fff;
}

.contact__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--color-accent);
    background: rgba(124, 58, 237, 0.1);
}

.contact-link span:first-child {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link span:last-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.contact__accent {
    position: absolute;
    top: 50%;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* FOOTER */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer p {
    margin: 0;
}
