:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-hover: rgba(30, 41, 59, 0.9);
    --border-color: rgba(148, 163, 184, 0.1);
    --gold: #FFC72C; /* GSW Gold */
    --blue: #1D428A; /* GSW Blue */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Dynamic Background */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.12) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #a855f7, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo .dot {
    color: var(--primary);
    font-size: 32px;
    line-height: 0;
    margin-top: 8px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

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

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

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

.contact-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    color: var(--text-main) !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.contact-btn::after {
    display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 99px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 580px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

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

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Hero Visual & Avatar */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    z-index: 2;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.avatar-ring {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    animation: spin 30s linear infinite;
}

.avatar-glow {
    position: absolute;
    inset: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(60px);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-1 { top: 5%; right: 0; animation-delay: 0s; }
.card-2 { bottom: 15%; left: -30px; animation-delay: 2s; }
.card-3 { bottom: 5%; right: 10px; animation-delay: 4s; }

.floating-card i { font-size: 20px; }
.card-1 i { color: #3b82f6; }
.card-2 i { color: #10b981; }
.card-3 i { color: #f59e0b; }

/* Section Styles */
.section { padding: 120px 0; }
.bg-alt { background: var(--bg-darker); }

.section-header {
    margin-bottom: 80px;
    position: relative;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 100px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--primary);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--card-hover);
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.timeline-title {
    font-size: 22px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
}

.timeline-role {
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 16px;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Skills Grid */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.skill-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 24px;
}

.skill-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 700;
}

.skill-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-list li::before {
    content: '→';
    color: var(--accent);
    font-size: 18px;
    font-family: monospace;
}

/* New Modern Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    justify-content: center;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--card-hover);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gradient-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.gradient-2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-3 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-4 { background: linear-gradient(135deg, #10b981, #3b82f6); }

.project-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.project-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    flex: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-tags span {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

/* Curry Section */
.curry-section {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 100px 0;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 199, 44, 0.3);
}

.curry-header {
    text-align: center;
    margin-bottom: 60px;
}

.curry-quote {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.curry-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 24px;
    margin-bottom: 40px;
}

.curry-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.curry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.curry-item:hover img {
    transform: scale(1.05);
}

.curry-item.large {
    grid-row: span 2;
}

.curry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 32px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.curry-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #000;
}

.curry-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(2, 6, 23, 0.8);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .hero-title { font-size: clamp(40px, 5vw, 60px); }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        background: rgba(15, 23, 42, 0.95);
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 16px;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active {
        height: 280px;
        padding: 20px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding-top: 40px;
    }
    
    .hero-actions, .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 20px;
    }

    .avatar-container {
        width: 280px;
        height: 280px;
    }

    .curry-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .curry-item.large {
        grid-row: auto;
        aspect-ratio: 16/9;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 32px;
    }
}

/* AI Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.chat-container.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.chat-info h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-light);
}

.chat-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-gray);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-light);
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-gray);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }
    
    .chat-widget {
        right: 20px;
        bottom: 20px;
    }
}
