/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --bg-dark: #08090c;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-bg-hover: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.3);
    
    /* Harmonious Accents */
    --accent-cyan: #00f0ff;
    --accent-purple: #a855f7;
    --accent-cyan-rgb: 0, 240, 255;
    --accent-purple-rgb: 168, 85, 247;
    
    /* Typography */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Element specific defaults (Dark Mode) */
    --header-bg: rgba(8, 9, 12, 0.7);
    --menu-bg: rgba(8, 9, 12, 0.98);
    --footer-bg: #06070a;
    --bg-grid-color: rgba(255, 255, 255, 0.015);
    --btn-primary-text: #000000;
    --btn-secondary-bg: rgba(255, 255, 255, 0.03);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.06);
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.02);
    --input-focus-bg: rgba(255, 255, 255, 0.04);
    --hero-title-grad-start: #ffffff;
    --text-grad-start: #ffffff;
    --bg-glow-opacity: 0.45;
    --hero-glow-opacity: 0.3;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f8fafc;
        --card-bg: rgba(0, 0, 0, 0.02);
        --card-bg-hover: rgba(0, 0, 0, 0.04);
        --border-color: rgba(0, 0, 0, 0.08);
        --border-hover: rgba(124, 58, 237, 0.4);
        
        /* Accents for readability in light mode */
        --accent-cyan: #0891b2;
        --accent-purple: #7c3aed;
        --accent-cyan-rgb: 8, 145, 178;
        --accent-purple-rgb: 124, 58, 237;
        
        /* Typography */
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #64748b;
        
        /* Element specific overrides */
        --header-bg: rgba(248, 250, 252, 0.85);
        --menu-bg: rgba(248, 250, 252, 0.98);
        --footer-bg: #f1f5f9;
        --bg-grid-color: rgba(0, 0, 0, 0.025);
        --btn-primary-text: #ffffff;
        --btn-secondary-bg: rgba(0, 0, 0, 0.02);
        --btn-secondary-hover-bg: rgba(0, 0, 0, 0.05);
        --scrollbar-thumb: rgba(0, 0, 0, 0.2);
        --border-subtle: rgba(0, 0, 0, 0.08);
        --input-bg: rgba(0, 0, 0, 0.015);
        --input-focus-bg: rgba(0, 0, 0, 0.03);
        --hero-title-grad-start: #0f172a;
        --text-grad-start: #0f172a;
        --bg-glow-opacity: 0.18;
        --hero-glow-opacity: 0.15;
    }
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-cyan), var(--accent-purple));
}

/* ==========================================================================
   BACKGROUND ARTWORK (GLOW & GRID)
   ========================================================================== */

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -2;
    opacity: var(--bg-glow-opacity);
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.35) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: 10%;
    right: -10%;
    background: radial-gradient(circle, rgba(var(--accent-purple-rgb), 0.3) 0%, transparent 70%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, var(--bg-grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-grid-color) 1px, transparent 1px);
    pointer-events: none;
    z-index: -3;
}

/* ==========================================================================
   TYPOGRAPHY ELEMENTS
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* ==========================================================================
   GLASSMORPHISM CARD BASE
   ========================================================================== */

.glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
    box-shadow: 0 10px 30px -15px rgba(var(--accent-cyan-rgb), 0.15);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    height: 80px;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.logo-code {
    color: var(--accent-cyan);
}

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

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    transition: var(--transition-smooth);
}

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

.btn-nav {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--btn-secondary-bg);
}

.btn-nav:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(var(--accent-cyan-rgb), 0.2);
}

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

/* Hamburger Navigation */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 105;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background: var(--menu-bg);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    display: flex;
    list-style: none;
    transition: var(--transition-smooth);
}

.menu-links.open {
    right: 0;
}

.menu-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    display: block;
    transition: var(--transition-smooth);
}

.menu-links a:hover {
    color: var(--accent-cyan);
    padding-left: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-container {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-family: var(--font-sans);
    text-decoration: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--btn-primary-text);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(var(--accent-cyan-rgb), 0.4);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: var(--btn-secondary-hover-bg);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem;
    min-height: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
}

.hero-welcome {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-subtitle {
    font-size: 2rem;
    background: linear-gradient(to right, var(--hero-title-grad-start) 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

#socials-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-bounce);
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-5px) rotate(8deg);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.hero-image-glow {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    filter: blur(25px);
    opacity: var(--hero-glow-opacity);
    z-index: 1;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    overflow: hidden;
    z-index: 2;
    background: var(--bg-dark);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-container:hover .profile-pic {
    transform: scale(1.05);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
}

.about-card-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(var(--accent-cyan-rgb), 0.05);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.15);
    color: var(--accent-cyan);
}

.card-icon {
    width: 24px;
    height: 24px;
}

.education-item {
    border-left: 2px solid var(--border-subtle);
    padding-left: 1.25rem;
    position: relative;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-degree {
    font-weight: 600;
    color: var(--text-primary);
}

.edu-gpa {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 500;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mt-3 {
    margin-top: 1rem;
}

.about-description {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.about-description h3 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--text-grad-start), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.about-bullet {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bullet-check {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ==========================================================================
   TECHNICAL SKILLS SECTION
   ========================================================================== */

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

.skills-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.skill-cat-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
}

.skills-card:hover .skill-cat-icon {
    color: var(--accent-purple);
}

.skills-card h3 {
    font-size: 1.25rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-weight: 500;
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: rgba(var(--accent-cyan-rgb), 0.3);
    background: rgba(var(--accent-cyan-rgb), 0.05);
    transform: scale(1.05);
}

/* ==========================================================================
   PROFESSIONAL EXPERIENCE SECTION
   ========================================================================== */

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 6px);
    top: 2.75rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
    transform: scale(1.3);
}

.timeline-header {
    margin-bottom: 1.5rem;
}

.timeline-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.timeline-title-row h3 {
    font-size: 1.4rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.timeline-org {
    font-weight: 500;
    color: var(--text-secondary);
}

.timeline-details {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.timeline-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

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

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-folder-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.project-card:hover .project-folder-icon {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.project-info {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1.25rem;
}

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

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    background: rgba(var(--accent-cyan-rgb), 0.05);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.15);
    color: var(--accent-cyan);
    border-radius: 6px;
}

.project-info h3 {
    font-size: 1.4rem;
}

.project-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-links {
    margin-top: auto;
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */

.certs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 3rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-bounce);
}

.cert-item:hover {
    border-color: var(--accent-purple);
    transform: scale(1.05);
    box-shadow: 0 5px 15px -5px rgba(var(--accent-purple-rgb), 0.25);
    background: rgba(168, 85, 247, 0.05);
}

.cert-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.section-contact {
    padding: 60px 2rem;
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    border-radius: 12px;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-cyan-rgb), 0.3);
    box-shadow: 0 8px 24px -8px rgba(0, 240, 255, 0.12);
}

.contact-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--accent-cyan-rgb), 0.05);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.15);
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon-box {
    background: rgba(var(--accent-cyan-rgb), 0.1);
    color: var(--accent-purple);
    border-color: rgba(var(--accent-cyan-rgb), 0.25);
    transform: scale(1.05);
}

.contact-icon-box svg {
    width: 22px;
    height: 22px;
}

.contact-method-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-method-details a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    word-break: break-word;
}

.contact-method-details a:hover {
    color: var(--accent-cyan);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--footer-bg);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}