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

:root {
    --primary-dark: #060d1f;
    --secondary-cyan: #00e5ff;
    --accent-blue: #0066ff;
    --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(0, 229, 255, 0.06);
    --border-color: rgba(0, 229, 255, 0.1);
    --border-hover: rgba(0, 229, 255, 0.4);
    --text-primary: #f0f6ff;
    --text-secondary: rgba(240, 246, 255, 0.5);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--primary-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .outfit { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; transition: var(--transition); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======================================================
   HEADER
====================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: #fff;
}

.logo span { color: var(--secondary-cyan); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
}

.nav-links a:hover { color: var(--secondary-cyan); }

/* ======================================================
   FLOATING TAG
====================================================== */
.exploring-tag {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 229, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    z-index: 500;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--secondary-cyan);
    animation: float 4s ease-in-out infinite;
}

.exploring-dot {
    width: 7px;
    height: 7px;
    background: var(--secondary-cyan);
    border-radius: 50%;
    flex-shrink: 0;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

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

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

/* ======================================================
   HERO — Fixed layout, no 3D tilt
====================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    gap: 2.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0, 102, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 50% 70%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
        var(--primary-dark);
    position: relative;
    overflow: hidden;
}

/* Subtle grid overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ---- Orbit System ---- */
.hero-visual-center {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.center-profile {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 5px;
    background: var(--accent-gradient);
    position: relative;
    z-index: 10;
    animation: profile-breathe 6s ease-in-out infinite;
}

.center-profile img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid var(--primary-dark);
    display: block;
}

@keyframes profile-breathe {
    0%, 100% { box-shadow: 0 0 30px rgba(0,229,255,0.2), 0 0 60px rgba(0,102,255,0.1); }
    50% { box-shadow: 0 0 50px rgba(0,229,255,0.35), 0 0 100px rgba(0,102,255,0.18); }
}

/* Orbit ring — purely CSS, no JS tilt */
.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(0,229,255,0.15);
    animation: spin 40s linear infinite;
}

.orbit-ring-inner {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    border: 1px dashed rgba(0,229,255,0.08);
    animation: spin 25s linear infinite reverse;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counter-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.orbit-icon:hover {
    border-color: var(--secondary-cyan);
    background: rgba(0, 229, 255, 0.1);
    transform: scale(1.15);
}

.orbit-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
    display: block;
}

/* 8 icons at perfect 45° intervals — positioned on the ring edge */
.orbit-icon:nth-child(1)  { top: 5px;   left: 50%; transform: translateX(-50%); }
.orbit-icon:nth-child(2)  { top: 18%;  right: 3%; }
.orbit-icon:nth-child(3)  { top: 50%;  right: 0;  transform: translateY(-50%); }
.orbit-icon:nth-child(4)  { bottom: 18%; right: 3%; }
.orbit-icon:nth-child(5)  { bottom: 5px; left: 50%; transform: translateX(-50%); }
.orbit-icon:nth-child(6)  { bottom: 18%; left: 3%; }
.orbit-icon:nth-child(7)  { top: 50%;  left: 0;  transform: translateY(-50%); }
.orbit-icon:nth-child(8)  { top: 18%;  left: 3%; }

/* Orbit animation wrapper — rotates the set of icons */
.orbit-icons-wrapper {
    position: absolute;
    inset: 0;
    animation: spin 36s linear infinite;
}

/* Counter-rotate each icon so they stay upright */
.orbit-icons-wrapper .orbit-icon {
    animation: counter-spin 36s linear infinite;
}

@keyframes counter-spin {
    from { transform-origin: center; }
    to { }
}

/* ---- Hero Text ---- */
.hero-text {
    max-width: 780px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.title-highlight {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55em;
    color: var(--secondary-cyan);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
    margin-bottom: 1.5rem;
    animation: glow-text 3s ease-in-out infinite;
}

@keyframes glow-text {
    0%, 100% { text-shadow: 0 0 18px rgba(0, 229, 255, 0.4); }
    50% { text-shadow: 0 0 30px rgba(0, 229, 255, 0.7), 0 0 60px rgba(0, 229, 255, 0.2); }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.35);
}

.btn-outline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--secondary-cyan);
    color: var(--secondary-cyan);
    background: rgba(0,229,255,0.04);
}

/* ======================================================
   SECTIONS
====================================================== */
section { padding: 8rem 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 0.95rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-icon {
    color: var(--secondary-cyan);
    margin-right: 0.75rem;
}

/* ======================================================
   ABOUT
====================================================== */
#about { background: rgba(0, 229, 255, 0.015); }

.about-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-bio {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(240,246,255,0.75);
    margin-bottom: 1.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--card-bg-hover);
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-cyan);
    margin-bottom: 0.4rem;
}

.stat-card p {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* ======================================================
   SKILLS
====================================================== */
.skill-group { margin-bottom: 4rem; }

.skill-group-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-cyan);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skill-group-title i { font-size: 0.9rem; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem 0.75rem 1.25rem;
    border-radius: 14px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::after { opacity: 0.05; }

.skill-card img {
    width: 38px;
    height: 38px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.skill-card p {
    font-family: var(--font-heading);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

/* ======================================================
   TIMELINE
====================================================== */
.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-cyan), var(--accent-blue) 70%, transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2.75rem;
    top: 1.25rem;
    width: 14px;
    height: 14px;
    background: var(--secondary-cyan);
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.75rem 2rem;
    border-radius: 14px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
}

.timeline-company {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.timeline-card p {
    font-size: 0.88rem;
    color: rgba(240,246,255,0.65);
    line-height: 1.7;
}

/* ======================================================
   PROJECTS
====================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.project-icon {
    font-size: 1.5rem;
    color: var(--secondary-cyan);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.project-card p {
    font-size: 0.88rem;
    color: rgba(240,246,255,0.6);
    line-height: 1.7;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.18);
    color: var(--secondary-cyan);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

/* ======================================================
   AWARDS
====================================================== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

.award-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 102, 255, 0.03) 100%);
    border: 1px solid rgba(0, 229, 255, 0.12);
    padding: 2rem;
    border-radius: 18px;
    transition: var(--transition);
}

.award-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.award-icon {
    font-size: 2rem;
    color: var(--secondary-cyan);
    margin-bottom: 1.25rem;
    display: block;
}

.award-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
}

.award-meta {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-cyan);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    display: block;
}

.award-card p {
    font-size: 0.85rem;
    color: rgba(240,246,255,0.6);
    line-height: 1.65;
}

/* ======================================================
   CONTACT
====================================================== */
#contact { text-align: center; }

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    opacity: 0.75;
}

.contact-link:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.contact-link i { font-size: 1.75rem; }
.contact-link span {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

/* ======================================================
   SCROLL REVEAL
====================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
    section { padding: 6rem 0; }
    .hero-visual-center { width: 300px; height: 300px; }
    .center-profile { width: 160px; height: 160px; }
    .orbit-icon { width: 42px; height: 42px; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    .title-highlight { letter-spacing: 0.3em; font-size: 0.7rem; }
    .section-title { font-size: 1.75rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-links { gap: 2rem; }
    .exploring-tag { font-size: 0.65rem; padding: 0.5rem 1rem; right: 1rem; bottom: 1rem; }
}
