:root {
    /* Light theme - Clean & Minimal */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-accent: #000000;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e5e5e5;
    --border-accent: #000000;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.15);
    --gradient-text: linear-gradient(180deg, #000000 0%, #333333 100%);
}

[data-theme="dark"] {
    /* Dark theme - Sophisticated & Modern */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-accent: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --border-color: #1a1a1a;
    --border-accent: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.8);
    --gradient-text: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    
    body.loaded {
        cursor: none;
    }
    
    /* Hide default cursor on all interactive elements */
    a, button, input, textarea, select, .service-card, .portfolio-item, .contact-link, .grid-item, .theme-toggle, .mobile-menu-toggle, .login-link {
        cursor: none !important;
    }
}

/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: var(--bg-accent);
        border-radius: 50%;
        opacity: 0;
        will-change: transform, opacity;
        transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    body.loaded .cursor-dot {
        opacity: 1;
    }

    .cursor-dot.cursor-hover {
        width: 24px;
        height: 24px;
        opacity: 0.5;
        background: transparent;
        border: 2px solid var(--bg-accent);
    }
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    font-family: 'JetBrains Mono', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.login-link {
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    background: var(--bg-accent);
    color: var(--bg-primary) !important;
    border: 2px solid var(--bg-accent);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 600;
}

.login-link:hover {
    background: transparent;
    color: var(--text-primary) !important;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.1rem;
    will-change: transform;
}

.theme-toggle:hover {
    border-color: var(--border-accent);
    background: var(--bg-secondary);
    transform: scale(1.05) translateZ(0);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

/* Animated Grid Background */
.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

[data-theme="dark"] .animated-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.badge-text {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.title-line.text-reveal {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 90%;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.stat-item:hover .stat-number {
    transform: scale(1.1) translateZ(0);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.125rem 2.25rem;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    cursor: none;
    font-size: 0.95rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    will-change: transform;
}

.btn-primary {
    background: var(--bg-accent);
    color: var(--bg-primary);
    border-color: var(--bg-accent);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--bg-accent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: -1;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-accent);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.grid-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.grid-item::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;
}

[data-theme="dark"] .grid-item::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.grid-item:hover::before {
    left: 100%;
}

.grid-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px) scale(1.05) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.grid-item .item-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.grid-item:hover .item-icon {
    transform: scale(1.2) rotate(5deg) translateZ(0);
}

.item-1 {
    grid-column: 1;
    grid-row: 1;
}

.item-2 {
    grid-column: 2;
    grid-row: 1;
}

.item-3 {
    grid-column: 1;
    grid-row: 2;
}

.item-4 {
    grid-column: 2;
    grid-row: 2;
}

.item-content {
    text-align: center;
    z-index: 1;
}

.item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.grid-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.grid-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.section-title.text-reveal {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.service-card.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px) scale(1.02) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-accent);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    will-change: opacity;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--bg-secondary);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
    opacity: 0.3;
    z-index: 0;
}

.service-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.service-card > .service-content > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-weight: 600;
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.portfolio-item.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portfolio-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px) scale(1.02) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 280px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .portfolio-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category,
.portfolio-year {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.portfolio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-photo {
    transform: scale(1.1);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    gap: 1.5rem;
}

.placeholder-pattern {
    width: 80%;
    height: 80%;
    background: 
        repeating-linear-gradient(45deg, var(--border-color) 0px, var(--border-color) 2px, transparent 2px, transparent 20px),
        repeating-linear-gradient(-45deg, var(--border-color) 0px, var(--border-color) 2px, transparent 2px, transparent 20px);
    opacity: 0.3;
}

.coming-soon-placeholder {
    background: var(--bg-tertiary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--bg-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.coming-soon-text-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.portfolio-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.portfolio-info > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.portfolio-tags span {
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-accent);
    opacity: 0.05;
    transition: left 0.3s ease;
    z-index: 0;
}

.contact-link:hover::before {
    left: 0;
}

.contact-link:hover {
    border-color: var(--border-accent);
    transform: translateX(8px) translateZ(0);
    box-shadow: var(--shadow-md);
}

.contact-link-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.contact-link:hover .contact-link-icon {
    background: var(--bg-accent);
    border-color: var(--bg-accent);
    transform: scale(1.1) translateZ(0);
}

.contact-link-icon svg {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-link:hover .contact-link-icon svg {
    color: var(--bg-primary);
}

.contact-link-content {
    flex: 1;
    z-index: 1;
}

.contact-link-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.contact-link-value {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    color: var(--text-primary);
    will-change: transform, opacity;
}

.contact-link:hover .contact-link-arrow {
    opacity: 1;
    transform: translateX(0) translateZ(0);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-primary);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .login-container::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .login-container::after {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.login-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-box h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.login-box > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form input {
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .login-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.login-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.error-message {
    color: #ef4444;
    text-align: center;
    margin-top: 1rem;
    display: none;
    font-size: 0.875rem;
}

.error-message.show {
    display: block;
}

/* Secret Page Styles */
.secret-container {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    background: var(--bg-primary);
}

.secret-header {
    text-align: center;
    margin-bottom: 5rem;
}

.secret-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.coming-soon-text {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.coming-soon-animated {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    display: inline-block;
    position: relative;
    background: linear-gradient(90deg, 
        var(--text-primary) 0%, 
        var(--text-secondary) 25%, 
        var(--text-primary) 50%, 
        var(--text-secondary) 75%, 
        var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
    will-change: background-position;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.coming-soon-animated::before {
    content: 'Yakında geliyor :)';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    animation: blurPulse 2s ease-in-out infinite;
}

@keyframes blurPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.coming-soon-animated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        transparent 40%, 
        rgba(0, 0, 0, 0.1) 70%, 
        transparent 100%);
    animation: ripple 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

[data-theme="dark"] .coming-soon-animated::after {
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        transparent 40%, 
        rgba(255, 255, 255, 0.1) 70%, 
        transparent 100%);
}

@keyframes ripple {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-md);
}

.info-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.info-section ul {
    color: var(--text-secondary);
    line-height: 2;
    margin-left: 2rem;
    margin-top: 1.5rem;
}

.info-section ul li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.ai-section {
    margin-top: 4rem;
}

.ai-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.ai-chat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.ai-chat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-chat-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.ai-provider-badge {
    padding: 0.35rem 0.75rem;
    background: var(--bg-accent);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.ai-chat-message {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-chat-message.user {
    background: var(--bg-accent);
    color: var(--bg-primary);
    margin-left: auto;
    text-align: right;
}

.ai-chat-message.assistant {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.ai-chat-input-container {
    display: flex;
    gap: 0.75rem;
}

.ai-chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.ai-chat-input:focus {
    outline: none;
    border-color: var(--border-accent);
}

.ai-chat-send {
    padding: 1rem 1.75rem;
    background: var(--bg-accent);
    color: var(--bg-primary);
    border: 2px solid var(--bg-accent);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.ai-chat-send:hover {
    background: transparent;
    color: var(--text-primary);
}

.ai-config-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.ai-config-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.config-item {
    margin-bottom: 2rem;
}

.config-item label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
}

.config-item input,
.config-item select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.config-item input:focus,
.config-item select:focus {
    outline: none;
    border-color: var(--border-accent);
}

.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.logout-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.logout-btn:hover {
    background: var(--bg-accent);
    color: var(--bg-primary);
    border-color: var(--bg-accent);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    animation: fadeIn 0.5s ease forwards;
}

/* Section Header Animation */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Content Animation */
.hero-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.hero-visual {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.hero-visual.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Service Icon Animation */
.service-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    will-change: transform;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg) translateZ(0);
}

/* Portfolio Image Animation */
.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.1);
}

/* Input Focus Animation */
.contact-form input:focus,
.contact-form textarea:focus,
.login-form input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus,
[data-theme="dark"] .login-form input:focus {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Navbar Animation */
.navbar {
    transform: translateY(-100%);
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Badge Animation */
.badge-text {
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .cursor-dot {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    .hero .container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        height: 400px;
    }

    .contact-links {
        gap: 1rem;
    }
    
    .contact-link {
        padding: 1.5rem;
    }

    .ai-chat-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .visual-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .item-1, .item-2, .item-3, .item-4 {
        grid-column: 1;
    }

    .item-1 { grid-row: 1; }
    .item-2 { grid-row: 2; }
    .item-3 { grid-row: 3; }
    .item-4 { grid-row: 4; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-accent);
}
