/* ==================================
   VARIABLES & RESET
================================== */
:root {
    --bg-color: #0B0E14;
    --surface-color: rgba(20, 24, 34, 0.65);
    --primary: #3b82f6; 
    --secondary: #8b5cf6; 
    --accent: #06b6d4; 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0b0e14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='173.2' viewBox='0 0 100 173.2'%3E%3Cpath fill='%230f131b' d='M0 86.6l50 28.87v57.73L0 144.33z'/%3E%3Cpath fill='%230b0e14' d='M100 86.6l-50 28.87v57.73l50-28.86z'/%3E%3Cpath fill='%23141a25' d='M50 57.74L100 86.6 50 115.47 0 86.6zM50 0l50 28.87 0 57.73L50 57.74 0 86.6V28.87z'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

/* ==================================
   BACKGROUND SHAPES & BLUR
================================== */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.shape-2 {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
}

/* ==================================
   GLASMORPHISM UTILITY
================================== */
.glassmorphism {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

/* ==================================
   TYPOGRAPHY
================================== */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.highlight {
    color: var(--primary);
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    position: relative;
    letter-spacing: -0.5px;
}

.underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* ==================================
   BUTTONS
================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==================================
   LAYOUT & SECTIONS
================================== */
.section {
    padding: 6rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main {
    padding-top: 80px; /* Offset for navbar */
}

/* ==================================
   NAVBAR
================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 10%;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

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

.nav-item {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==================================
   HERO SECTION
================================== */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.greeting {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

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

.image-border {
    width: 380px;
    height: 380px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4px;
    animation: blob-bounce 8s infinite alternate;
}

@keyframes blob-bounce {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background-color: var(--surface-color); /* fallback */
}

.floating-badge {
    position: absolute;
    background: rgba(20, 24, 34, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s infinite ease-in-out;
}

.badge-1 {
    top: 10%;
    left: 0;
    color: #f89820; /* Java orange */
}

.badge-2 {
    bottom: 15%;
    right: 0;
    color: var(--accent);
    animation-delay: 2s;
}

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

/* ==================================
   ABOUT SECTION
================================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ==================================
   EDUCATION SECTION
================================== */
.education-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.edu-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.edu-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 150px;
}

.edu-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.edu-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.skill-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==================================
   PROJECTS SECTION
================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
}

.project-placeholder h3 {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 2px;
}

.project-info h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.project-card:hover .project-info h3::after {
    width: 100%;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    color: var(--accent);
}

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

.social-icon {
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.social-icon:hover {
    color: var(--primary);
}

/* ==================================
   ACHIEVEMENTS SECTION
================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.achievement-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.cert-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.achievement-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.achievement-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.achievement-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================================
   CONTACT SECTION
================================== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 650px;
    margin: 3rem auto 0 auto;
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: rgba(20, 24, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
}

.contact-card:hover {
    background: rgba(30, 36, 50, 0.9);
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.15); /* Purple tint matching the reference */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-main);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================================
   FOOTER
================================== */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(11, 14, 20, 0.8);
}

/* ==================================
   ANIMATIONS & RESPONSIVE
================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 3rem;
    }
    
    .section-heading {
        align-items: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .image-border {
        width: 300px;
        height: 300px;
    }
    
    .contact-box {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 5rem 5%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .image-border {
        width: 250px;
        height: 250px;
    }
    
    .floating-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.project-card:hover .project-img-container img {
    transform: scale(1.05) !important;
}

/* ==================================
   SPARK CURSOR
================================== */
@media screen and (min-width: 992px) {
    body, a, button, .project-card, .nav-item, input, textarea {
        cursor: none !important;
    }

    .cursor-core {
        width: 10px;
        height: 10px;
        background: #fff;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 15px 4px var(--accent);
        transition: transform 0.15s ease-out, background 0.15s;
    }

    .cursor-core.hovered {
        transform: translate(-50%, -50%) scale(2.5);
        background: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 20px 8px rgba(6, 182, 212, 0.6);
    }

    .sparkle {
        position: fixed;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        animation: spark-fall 0.8s ease-out forwards;
    }
}

@keyframes spark-fall {
    0% { transform: scale(1) translate(-50%, -50%); opacity: 1; }
    100% { transform: scale(0) translate(-50%, 50px); opacity: 0; }
}

@media screen and (max-width: 991px) {
    .cursor {
        display: none;
    }
}
