@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f5f7fa;
    --bg-gradient: linear-gradient(135deg, #e3f0ff 0%, #f5f7fa 100%);
    --card-bg: rgba(255,255,255,0.85);
    --text-primary: #22223b;
    --text-secondary: #6c757d;
    --accent: #2997ff;
    --accent-hover: #66b2ff;
    --accent-gradient: linear-gradient(90deg, #2997ff 0%, #66b2ff 100%);
    --glass: rgba(255,255,255,0.7);
    --border: rgba(41,151,255,0.15);
    --container-width: 1100px;
    --section-padding: 8rem;
    --shadow: 0 8px 32px 0 rgba(41,151,255,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.003em;
}

p {
    color: var(--text-secondary);
}

/* Header & Nav - Apple Style */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(20px);
}

.container-nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0;
    min-width: 220px;
    flex: 0 0 auto;
    position: static;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 100%;
    background: none;
}

.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 24px;
    background: none;
    box-shadow: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-block;
    min-width: 110px;
    text-align: center;
}

.nav-link:hover {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(41,151,255,0.10);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px 0 rgba(41,151,255,0.10);
}

/* Profile */
.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #e3f0ff;
    background: #fff;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
    vertical-align: middle;
}

.verified-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Sections */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

section {
    padding: var(--section-padding) 0;
}

@media (max-width: 1200px) {
    .container {
        max-width: 98vw;
        padding: 0 1.5rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(120deg, #e3f0ff 60%, #2997ff 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    border-radius: 32px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* About Section - More Expansion */
.about-section {
    position: relative;
    background: var(--card-bg);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 4rem 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4rem;
    text-align: left;
}

.about-section h2 {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

.detail-item h4 {
    color: var(--accent);
    font-weight: 600;
}

.detail-item p {
    color: var(--text-secondary);
}

/* Projects Grid - Bento/Apple Style */
.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    margin-top: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 12px 40px 0 rgba(41,151,255,0.18);
    transform: scale(1.02);
}

.card-image-container {
    height: 70%;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(41,151,255,0.10);
    border: none;
    font-size: 18px;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 24px;
    transition: background 0.3s, box-shadow 0.3s;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #66b2ff 0%, #2997ff 100%);
    box-shadow: 0 8px 32px 0 rgba(41,151,255,0.22);
}

/* Logo Container Hover Effect */
.logo-container a {
    transition: color 0.3s, filter 0.3s;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--text-primary);
}

.logo-container a:hover, .logo-container a:focus {
    color: var(--accent);
    filter: brightness(1.1);
    background: none;
    box-shadow: none;
}

.logo-container a:hover .profile-name,
.logo-container a:hover .verified-icon {
    color: var(--accent);
    filter: brightness(1.2);
}

.logo-container a:hover .profile-img {
    border-color: var(--accent);
}

.logo-container a:active {
    color: var(--accent-hover);
    background: none;
    box-shadow: none;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Footer */
footer {
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-top: 4rem;
    padding: 4rem 0;
    text-align: center;
    font-size: 12px;
}

#contact h2 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .card { height: 500px; }
    .nav-links { display: none; }
    .about-section, .hero { border-radius: 16px; }
}
