/* Nata Software - Modern Agency Brand CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #FF5722;
    --accent-secondary: #0066ff;
    --border: #e0e0e0;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent: #FF7043;
    --accent-secondary: #0099ff;
    --border: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: none;
    position: relative;
}

/* Particle Canvas Background */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* Ensure content is above canvas */
nav, main, section, footer {
    position: relative;
    z-index: 1;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0.25;
}

.custom-cursor-dot {
    display: none;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent) !important;
    opacity: 0.35;
}

/* Ensure cursor color changes with theme */
[data-theme="light"] .custom-cursor {
    background: var(--text-primary);
}

[data-theme="light"] .custom-cursor.hover {
    background: var(--accent) !important;
}

[data-theme="dark"] .custom-cursor {
    background: var(--text-primary);
}

[data-theme="dark"] .custom-cursor.hover {
    background: var(--accent) !important;
}

/* Hide default cursor */
a, button, input, textarea, select, * {
    cursor: none !important;
}

/* Restore default cursor for interactive elements on mobile */
@media (pointer: coarse) {
    body, a, button, input, textarea, select, * {
        cursor: auto !important;
    }
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes textGradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes revealUp {
    0% {
        clip-path: inset(100% 0 0 0);
        transform: translateY(20px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent);
    }
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 130px;
    width: auto;
    filter: none;
}

[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

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

.theme-toggle-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.03;
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    padding-bottom: 0.2em;
    position: relative;
    text-transform: lowercase;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s linear infinite;
}

.hero-title-break {
    display: block;
    position: relative;
}

.hero-title-break:nth-child(2) {
    padding-left: 12vw;
}

.hero-title-break:nth-child(3) {
    padding-left: 5vw;
}

/* Accent Elements */
.accent-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-1 {
    width: clamp(150px, 25vw, 300px);
    height: clamp(150px, 25vw, 300px);
    background: var(--accent);
    top: 15%;
    right: 10%;
    opacity: 0.95;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: clamp(100px, 18vw, 200px);
    height: clamp(100px, 18vw, 200px);
    background: var(--accent-secondary);
    bottom: 10%;
    left: 5%;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.7;
    padding-left: 2rem;
}

.cta-button {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Ripple effect on click */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

[data-theme="light"] .ripple {
    background: rgba(0, 0, 0, 0.6);
}

/* Section Styles */
.section {
    padding: 10rem 4rem;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 5rem;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem 3rem;
    margin-top: 5rem;
}

.service-card {
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    border: none;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.service-card:hover .service-number {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    color: var(--accent);
}

.service-number {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 900;
    font-family: monospace;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Projects Gallery */
.projects-gallery {
    display: grid;
    gap: 8rem;
    margin-top: 5rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover {
    transform: translateY(0);
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even) > * {
    direction: ltr;
}

.project-image {
    width: 100%;
    height: 500px;
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-image {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-image img {
    transform: scale(1.08);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

/* Brand Logo Styling */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-secondary);
}

.brand-logo img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* White filter for bapompom in dark theme */
[data-theme="dark"] .brand-logo img[src*="bapompom"] {
    filter: brightness(0) invert(1) grayscale(100%);
}

[data-theme="dark"] .project-item:hover .brand-logo img[src*="bapompom"] {
    filter: brightness(0) invert(1) grayscale(0%);
}

.project-item:hover .brand-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.brand-placeholder {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.project-info {
    padding: 2rem 0;
}

.project-category {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.project-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--accent);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tech-badge {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: gap 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.project-link:hover {
    gap: 1.25rem;
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-top: 5rem;
}

.tech-category {
    padding: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tech-category:nth-child(1) { transition-delay: 0.1s; }
.tech-category:nth-child(2) { transition-delay: 0.2s; }
.tech-category:nth-child(3) { transition-delay: 0.3s; }
.tech-category:nth-child(4) { transition-delay: 0.4s; }
.tech-category:nth-child(5) { transition-delay: 0.5s; }
.tech-category:nth-child(6) { transition-delay: 0.6s; }

.tech-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tech-item {
    color: var(--text-secondary);
    font-size: 1rem;
    padding-left: 2rem;
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.tech-item:hover {
    color: var(--text-primary);
    padding-left: 2.5rem;
}

.tech-item::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
}

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

.contact-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 2px solid transparent;
}

.contact-item:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    padding-left: 1rem;
}

.contact-item span:first-child {
    font-size: 2rem;
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 4rem;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 3rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 968px) {
    .nav-container {
        padding: 1rem 2rem;
    }

    .logo-img {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(10, 10, 10, 0.95);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

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

    .theme-toggle-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero {
        padding: 0 2rem;
    }

    .section {
        padding: 6rem 2rem;
    }

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

    .project-item:nth-child(even) {
        direction: ltr;
    }

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

    .footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .circle-1, .circle-2 {
        opacity: 0.5;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 60px;
    }

    .nav-menu {
        max-width: 100%;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .hero {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .hero-title-break:nth-child(2) {
        padding-left: 5vw;
    }

    .hero-title-break:nth-child(3) {
        padding-left: 2vw;
    }

    .tagline,
    .cta-button {
        margin-left: 0;
    }

    .project-image {
        height: 350px;
    }

    .contact-item {
        font-size: 1.1rem;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
