@import "https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap";

:root {
    --accent: #818cf8;
    --accent-2: #c084fc;
    --accent-3: #22d3ee;
    --gold: #fbbf24;
    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, .07);
    --glass-bg-strong: rgba(255, 255, 255, .11);
    --glass-brd: rgba(255, 255, 255, .16);
    --glass-hi: rgba(255, 255, 255, .28);
    --radius: 22px;
    --shadow: 0 24px 60px -22px rgba(0, 0, 0, .55);
    --maxw: 1160px;
}

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

html {
    scroll-behavior: smooth;
    background: #0b1020;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #a1a1aa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
    background-color: #17171f;
    background-image: radial-gradient(circle at 10% 20%, rgba(30,27,46,.5) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(20,25,45,.3) 0%, transparent 40%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    z-index: 1000;
    max-width: var(--maxw);
    border-radius: 999px;
    background: #14141c99;
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 40px -10px #00000080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.logo {
    width: 120px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

nav ul li a {
    font-size: 14.5px;
    font-weight: 500;
    color: #a1a1aa;
    padding: 8px 0;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #fff;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    background: #dcd3ff;
    color: #3b2a75;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-2px);
    background: #cbbfff;
}

.btn2 {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}

.btn2:hover {
    transform: translateY(-2px);
    border-color: #fff;
    background: transparent;
}

/* HERO SECTION */
#header {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-bottom: 50px;
}

#hero {
    margin: 12% auto 0;
    max-width: 800px;
    text-align: center;
}

#hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.05;
    color: #fff;
}

#hero p {
    font-size: 17px;
    color: #a1a1aa;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* CARDS (About, Services, Portfolio, Contact) */
.glass-card {
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
    background: var(--glass-bg);
    padding: 30px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-strong);
    border-color: var(--glass-hi);
}

/* ABOUT */
#about { padding: 100px 0; }
.row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.about-col-1 { flex-basis: 40%; }
.about-col-1 img { width: 100%; border-radius: var(--radius); border: 1px solid var(--glass-brd); }
.about-col-2 { flex-basis: 55%; }

.sub-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 30px;
    border-bottom: 1px solid var(--glass-brd);
}

.tab-links {
    margin-right: 30px;
    padding-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}

.tab-links.active-link {
    color: var(--accent);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -1px; 
    transition: width 0.3s;
}

.tab-links.active-link::after { width: 100%; }

.tab-contents { display: none; animation: fadeIn 0.4s ease; }
.tab-contents.active-tab { display: block; }
.tab-contents ul li { list-style: none; margin: 15px 0; font-size: 16px; color: var(--muted); }
.tab-contents ul li span h2 { color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 4px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

/* SERVICES (Experiences) */
#service { padding: 100px 0; }
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 30px;
    margin-top: 40px;
}

.intern { color: #fff; margin-bottom: 10px; font-size: 20px; font-family: 'Playfair Display', serif;}
.intern span { font-weight: 700; color: #fff; }

.services-list .glass-card i { font-size: 32px; margin-bottom: 20px; color: var(--accent-3); }
.services-list .glass-card p { color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 15px; }
.services-list .glass-card ul { padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.services-list .glass-card ul li { margin-bottom: 10px; }

/* PORTFOLIO (My Work) */
#portfolio { padding: 100px 0; }
.work-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); grid-gap: 40px; margin-top: 50px; }

.work {
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.work img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid var(--glass-brd); }

.layer { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.layer h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.layer p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; flex-grow: 1; }
.layer a { color: var(--accent-2); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.layer a:hover { color: #fff; }

.work:hover { transform: translateY(-6px); background: var(--glass-bg-strong); border-color: var(--glass-hi); }

/* CONTACT */
#contact { padding: 100px 0; }
.contact-left { flex-basis: 35%; }
.contact-right { flex-basis: 60%; }

.contact-left p { margin-top: 25px; color: var(--ink-2); font-size: 16px; display: flex; align-items: center; }
.contact-left p i { color: var(--accent); margin-right: 15px; font-size: 20px; }

.social-icons { margin-top: 30px; }
.social-icons a {
    text-decoration: none; font-size: 20px; margin-right: 15px; color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.3s; width: 44px; height: 44px; border-radius: 50%;
    background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.social-icons a:hover { color: #fff; border-color: var(--accent); background: var(--glass-bg-strong); transform: translateY(-3px); }

.contact-left .btn { margin-top: 40px; }

form input, form textarea {
    width: 100%; margin-top: 10px; padding: 14px 16px;
    border: 1px solid var(--glass-brd); border-radius: 12px;
    font-size: 15px; font-family: inherit; color: #fff;
    background: rgba(10, 15, 30, 0.35); transition: border-color 0.2s, background 0.2s;
}
form input::placeholder, form textarea::placeholder { color: #64748b; }
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }
form .btn { margin-top: 20px; }

/* FOOTER */
.copyright {
    width: 100%; text-align: center; padding: 25px 0;
    border-top: 1px solid var(--glass-brd); color: var(--muted); font-size: 14px;
}

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

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .about-col-1, .about-col-2, .contact-left, .contact-right { flex-basis: 100%; }
    .about-col-1 { margin-bottom: 40px; }
    nav ul {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        padding: 12px; gap: 4px; background: #0f172aeb; -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px); border: 1px solid var(--glass-brd); border-radius: 18px;
    }
}