/* System need */
:root {
    --bg-base: #030712;      
    --bg-card: rgba(17, 24, 39, 0.7);  
    --accent-primary: #818cf8; 
    --accent-secondary: #2dd4bf; 
    --text-heading: #f9fafb;
    --text-body: #9ca3af;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* HTML Tags*/
header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 900px;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border: 1px solid var(--border-subtle);
    border-radius: 90px;
    padding: 0 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body {
    overflow-x: hidden;
    width: 100%;
    background-image: 
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

section {
    padding: 8rem 0;
}

html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-heading);
    overflow-x: hidden;
}
html::-webkit-scrollbar {
    display: none;
}

/* Navigation bar / Topbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.nav-links a:hover {
    color: var(--text-heading);
}

.logo {
    font-weight: 900;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span {
    color: var(--accent-secondary);
}

/* Main Section*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
} 
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--accent-primary) 70%, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.content-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    display: block;
}
#main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}
.main-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.main-content {
    max-width: 700px;
}
.name {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.main-text {
    font-size: 1.35rem;
    color: var(--text-body);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.main-image-wrapper{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 65%);
    z-index: -1;
    filter: blur(20px);
}
.photo-placeholder {
    width: 100%;
    max-width: 340px;
    height: 420px;
    background: linear-gradient(135deg,rgba(17, 24, 39, 0.8), rgba(3, 7, 18, 0.9));
    border: 1px dashed gainsboro;
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(0, 26, 122, 0.401);
}
.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}
.photo-placeholder:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.02) rotate(1deg);
}

.btn-class {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: var(--text-heading);
    color: var(--bg-base);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    transition: var(--transition-smooth);
}
.btn-class:hover {
    background: transparent;
    color: var(--text-heading);
    border-color: var(--text-heading);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-heading);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-heading);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-cell {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}
.about-cell:hover {
    border-color: rgba(149, 161, 219, 0.3);
    background: rgba(17, 24, 39, 0.9);
    transform: translateY(-5px);
}
.cell-large {
    grid-column: span 2;
}
.about-cell h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}
.about-cell p {
    color: var(--text-body);
    line-height: 1.6;
}

/* Premium Achievements Card Formatting */
.achievements-cell {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(3, 7, 18, 0.9));
    border: 1px solid rgba(129, 140, 248, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.achievement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}
.achievement-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.achievement-badge.gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #030712;
}
.achievement-badge.bronze {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
}
.achievement-badge.karate {
    background: linear-gradient(135deg, #964949, #1f2937);
    color: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.achievement-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.year-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--accent-secondary);
}

/* Interactive Skills Elements */
.cell-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.skill-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-heading);
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-skills .skill-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.2);
    color: #fff;
}
.interactive-skills .skill-pill[data-level="expert"]:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.25);
}

/* Experiences Timeline (FAAAHHHH) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem 0 0 1rem;
    border-left: 2px solid var(--border-subtle);
    padding-left: 2.5rem;
}
.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.timeline-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-2.5rem - 7px);
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    z-index: 2;
}

/* Project Section */
.project-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 212,191,0.3);
}

.project-img {
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background-color: linear-gradient(135deg, rgba(129 ,140 , 248, 0.1), rgba(45, 212, 191, 0.05));
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.project-content {
    padding: 2.5rem;
}
.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.project-desc {
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    background:rgba(45, 212, 191, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.tag-active{
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: greenyellow;
    background:rgba(45, 212, 191, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.tag-ondev{
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: yellow;
    background:rgba(45, 212, 191, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}


/* GitHub Project Button Styling */
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    transition: var(--transition-smooth);
}
.project-btn:hover {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.contact-form {
    margin-top: 3rem;
    text-align: left;
}
.contact-subtitle {
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 1rem;
}
.contact-text {
    color: var(--text-body);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-heading);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
}
.submit-btn {
    width: 100%; 
    justify-content: center;
}

/* ResponsivEEEEEE */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-heading);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.social-links-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px dashed var(--border-subtle);
}
.social-title {
    font-size: 1.8rem;
    font-weight: 900; 
    letter-spacing: 4px;
    color: var(--accent-secondary);
    margin-bottom: 2.5rem; 
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}
.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.social-pill {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle); 
    padding: 1.2rem 2.5rem;
    border-radius: 50px; 
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}
.social-pill:hover {
    border-color: var(--accent-primary);
    background: rgba(129, 140, 248, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(129, 140, 248, 0.25);
}

@media (max-width: 968px) {
    .main-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .main-content {
        order: 2;
    }
    .cta-group {
        justify-content: center;
    }
    .main-image-wrapper {
        order: 1;
        margin-top: 4rem;
    }
    .about-grid, .project-grid {
        grid-template-columns: 1fr;
    }
    .cell-large {
        grid-column: span 1;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .name {
        font-size: 3.2rem;
    }
    header {
        text-align: center;
        width: calc(100% - 2rem);
        top: 1rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-radius: 25px;
        border: 1px solid var(--border-subtle);
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: var(--transition-smooth);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(15px);
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .timeline {
        margin-left: 0;
    }
    .project-tags {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .contact-subtitle {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .photo-placeholder {
        height: 300px;
    }
    .about-cell {
        padding: 1.5rem;
    }
    .project-content {
        padding: 1.5rem;
    }
    .btn-class {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}