/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    /* Color Palette - Premium Dark Theme */
    --bg-main: #0a0a0b;
    --bg-secondary: #131417;
    --text-primary: #f0f0f2;
    --text-secondary: #a0a0ab;
    
    /* Accents - Cyan to Purple gradient */
    --accent-primary: #00f0ff;
    --accent-secondary: #8a2be2;
    --accent-glow: rgba(0, 240, 255, 0.4);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    
    /* Transitions */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient blobs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
}

body::after {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-primary), transparent 60%);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--trans-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.center-title::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.bg-alt {
    background-color: var(--bg-secondary);
    max-width: 100%;
}

.bg-alt > * {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--trans-medium), border-color var(--trans-fast), box-shadow var(--trans-medium);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--trans-fast);
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent-primary), #0099ff);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn.primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow);
    transform: translateY(-2px);
}

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

.btn.secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: transform var(--trans-medium), background var(--trans-fast);
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.95);
    box-shadow: var(--glass-shadow);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--trans-fast);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.greeting {
    color: var(--accent-primary);
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.typed-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.summary {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links-hero {
    display: flex;
    gap: 1.5rem;
}

.social-links-hero a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: color var(--trans-fast), transform var(--trans-fast);
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.blob-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.profile-img-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(145deg, #1a1a20, #0f0f13);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.05);
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Education Section
   ========================================================================== */
.education-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    gap: 2rem;
}

@media (min-width: 768px) {
    .education-card {
        flex-direction: row;
        align-items: center;
    }
}

.education-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.education-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.education-info {
    flex-grow: 1;
}

.degree {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.duration {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.education-card .description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2.5rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.skill-list i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

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

.project-img {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1a1a20;
}

/* Abstract pattern placeholders for projects */
.mockup-img {
    width: 100%;
    height: 100%;
    transition: transform var(--trans-slow);
}

.pattern-1 {
    background: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
    opacity: 0.8;
}

.pattern-2 {
    background: linear-gradient(45deg, #00b4db, #0083b0);
    opacity: 0.8;
}

.pattern-3 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    opacity: 0.8;
}

.project-card:hover .mockup-img {
    transform: scale(1.05);
}

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity var(--trans-fast);
    backdrop-filter: blur(3px);
}

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

.project-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    transform: translateY(20px);
    transition: all var(--trans-medium);
}

.project-card:hover .project-links a {
    transform: translateY(0);
}

.project-links a:hover {
    background: var(--accent-primary);
    color: #000;
}

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

.project-featured {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.project-tech li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--accent-primary);
}

.method h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.method p {
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--trans-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #050505;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content .logo {
    font-size: 1.5rem;
}

.footer-content .social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-content .social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.footer-content .social-links a:hover {
    color: var(--accent-primary);
}

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

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--trans-slow);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--trans-slow);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: var(--nav-height);
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .blob-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .profile-img-placeholder {
        width: 220px;
        height: 220px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--nav-height));
        background: rgba(10, 10, 11, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right var(--trans-medium);
        backdrop-filter: blur(15px);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .skill-list {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .scroll-down {
        display: none;
    }
}
