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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent-primary: #1e3a8a;
    --accent-secondary: #0066ff;
    --accent-tertiary: #ff3366;
    --border-color: #222222;
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    --gradient-2: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    --gradient-3: linear-gradient(135deg, #93c5fd 0%, #1d4ed8 100%);
}

[data-theme="light"] {
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --accent-primary: #065f46;
    --border-color: rgba(226, 232, 240, 0.6);
    --gradient-1: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    --gradient-2: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-3: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 40px;
    right: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle svg {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover svg {
    color: white;
}

.sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

[data-theme="light"] .noise-overlay {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(6, 95, 70, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 237, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(255, 236, 210, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 30% 80%, rgba(254, 214, 227, 0.1) 0%, transparent 35%);
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .gradient-orb {
    opacity: 0.5;
    filter: blur(110px);
}

/* Light mode decorative elements */
.light-decoration {
    position: fixed;
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 1s ease;
}

[data-theme="light"] .light-decoration {
    opacity: 1;
}

.light-decoration-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 236, 210, 0.4) 0%, transparent 70%);
    top: 15%;
    left: -50px;
    animation: float1 8s ease-in-out infinite;
}

.light-decoration-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 237, 234, 0.3) 0%, transparent 70%);
    top: 60%;
    right: -30px;
    animation: float2 10s ease-in-out infinite;
}

.light-decoration-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(254, 214, 227, 0.35) 0%, transparent 70%);
    bottom: 25%;
    left: 20%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(15px); }
    50% { transform: translateY(10px) translateX(-10px); }
    75% { transform: translateY(-15px) translateX(20px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(15px) translateX(-25px); }
    66% { transform: translateY(-10px) translateX(10px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    20% { transform: translateY(-25px) translateX(-15px); }
    40% { transform: translateY(20px) translateX(25px); }
    60% { transform: translateY(-10px) translateX(-20px); }
    80% { transform: translateY(15px) translateX(10px); }
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: 10%;
    right: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    bottom: 20%;
    left: 5%;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-3);
    top: 60%;
    right: 30%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    margin-bottom: 120px;
    position: relative;
}

.name-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 0.9;
    position: relative;
}

.name-char {
    display: inline-block;
    animation: letterFloat 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    transform: translateY(100px);
    opacity: 0;
}

@keyframes letterFloat {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.tagline-highlight {
    color: var(--accent-primary);
    font-weight: 500;
}

[data-theme="light"] .tagline-highlight {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-accent {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, transparent 100%);
    opacity: 0.8;
}

[data-theme="light"] .header-accent {
    background: linear-gradient(90deg, var(--accent-primary) 0%, rgba(6, 95, 70, 0.3) 70%, transparent 100%);
    opacity: 1;
}

/* Section Labels */
.section-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    font-family: 'JetBrains Mono', monospace;
}

.label-number {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    min-width: 30px;
}

.label-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Projects */
.projects {
    margin-bottom: 160px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    min-height: 280px;
    animation: cardSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    transform: translateY(60px);
    opacity: 0;
}

[data-theme="light"] .project-card {
    box-shadow: 0 8px 32px rgba(6, 95, 70, 0.08), 0 4px 16px rgba(168, 237, 234, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes cardSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 0.6;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 20px 60px rgba(6, 95, 70, 0.2), 0 8px 32px rgba(168, 237, 234, 0.25);
    border-color: rgba(6, 95, 70, 0.3);
    backdrop-filter: blur(25px);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-number {
    opacity: 0;
}

.project-info {
    padding: 40px;
    transition: opacity 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card:hover .project-info {
    opacity: 0;
}

.project-card:has(.in-development):hover .project-info {
    opacity: 1;
}

.project-card:has(.in-development):hover .project-hover {
    opacity: 0;
}

.project-card:has(.in-development):hover .project-number {
    opacity: 1;
}

.project-card:has(.in-development):hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-name {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.project-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.live {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status.in-development {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: auto;
}

.project-meta-left {
    display: flex;
    gap: 24px;
}

.project-year, .project-version {
    font-weight: 500;
    position: relative;
}

.project-year::before {
    content: 'YEAR';
    position: absolute;
    top: -16px;
    left: 0;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    opacity: 0.6;
}

.project-version::before {
    content: 'VERSION';
    position: absolute;
    top: -16px;
    left: 0;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* Hover State */
.project-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-hover {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0px);
}

.view-project-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.view-project-btn:hover {
    background: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.3);
}

.view-project-btn svg {
    transition: transform 0.3s ease;
}

.view-project-btn:hover svg {
    transform: translate(2px, -2px);
}

/* Contact Section */
.contact {
    text-align: left;
}

.contact-content {
    max-width: 600px;
}

.contact-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.email-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
}

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

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

.email-link:hover {
    color: var(--accent-primary);
}

.email-arrow {
    transition: transform 0.3s ease;
}

.email-link:hover .email-arrow {
    transform: translate(4px, -4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 60px 40px;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }
    
    .header {
        margin-bottom: 80px;
    }
    
    .projects {
        margin-bottom: 100px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-card {
        min-height: 240px;
    }
    
    .project-info {
        padding: 32px;
    }
    
    .project-name {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .section-label {
        margin-bottom: 40px;
    }
    
    .gradient-orb {
        filter: blur(60px);
        opacity: 0.2;
    }
    
    .orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .project-info {
        padding: 24px;
    }
    
    .project-name {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .email-link {
        font-size: 1.1rem;
    }
    
    .contact-description {
        font-size: 1.1rem;
    }
}