:root {
    --black: #0a0a0a;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-dark: #2563eb;
    --text: #e2e8f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--text);
    overflow-x: hidden;
}

/* Navbar */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(59,130,246,0.15);
}
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s;
    display: inline-block;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--blue-light);
    transition: width 0.3s;
}
.nav-links a:hover {
    color: var(--blue-light);
    transform: translateY(-6px);
}
.nav-links a:hover::after { width: 100%; }

/* Sections */
section { min-height: 100vh; padding: 7rem 5% 5rem; position: relative; }
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}
.section-subtitle {
    color: var(--blue-light);
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Home / Hero */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background: radial-gradient(circle at top right, #1725540%, #0a0a0a 60%);
}
.hero-left { flex: 1.2; }
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.typing-container {
    font-family: 'Orbitron', monospace;
    font-size: 2.4rem;
    color: var(--blue-light);
    min-height: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(96,165,250,0.3);
}
.cursor { display: inline-block; width: 3px; height: 2.4rem; background: var(--blue-light); animation: blink 1s infinite; vertical-align: bottom; margin-left: 4px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.tagline {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
}
.btn-primary {      background: linear-gradient(135deg, var(--blue), var(--blue-dark)); 
    color: white; 
    box-shadow: 0 0 20px rgba(59,130,246,0.4); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 0 30px rgba(59,130,246,0.7); 
}
.btn-outline { 
    background: transparent; 
    color: var(--blue-light); 
    border: 2px solid var(--blue); 
box-shadow: 0 0 10px rgba(59,130,246,0.1);
}
.btn-outline:hover { 
    background: var(--blue); 
    color: white; 
    transform: translateY(-3px); 
    box-shadow: 0 0 25px rgba(59,130,246,0.5);
}

.hero-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 4px solid var(--blue);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--navy);
    position: relative;

    animation: heroGlow 3s ease-in-out infinite;
}

@keyframes heroGlow {

    0% {
        box-shadow:
            0 0 20px rgba(59,130,246,.35),
            0 0 45px rgba(59,130,246,.25),
            0 0 75px rgba(59,130,246,.15),
            inset 0 0 35px rgba(59,130,246,.05);
    }

    50% {
        box-shadow:
            0 0 35px rgba(59,130,246,.60),
            0 0 70px rgba(59,130,246,.45),
            0 0 110px rgba(59,130,246,.30),
            inset 0 0 45px rgba(59,130,246,.12);
    }

    100% {
        box-shadow:
            0 0 20px rgba(59,130,246,.35),
            0 0 45px rgba(59,130,246,.25),
            0 0 75px rgba(59,130,246,.15),
            inset 0 0 35px rgba(59,130,246,.05);
    }
}



.hero-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder-text {
    color: var(--blue-light);
    font-family: 'Orbitron';
    font-size: 1.1rem;
    text-align: center;
padding: 2rem;
}

/* About */
#about {
    background: var(--navy);
    display: flex; gap: 5rem; align-items: flex-start;
}
.about-left { flex: 1; position: sticky; top: 100px; }
.about-img-container {
    width: 100%; max-width: 480px;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--navy-light);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    display: flex; justify-content: center; align-items: center;
}
.about-img-container img,
.about-img-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-placeholder {
    color: #475569;
    font-family: 'Orbitron';
    font-size: 1.3rem;
    text-align: center;
    padding: 2rem;
}
.about-img-container {
    position: relative;
    overflow: hidden;
}

.about-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    pointer-events: none;
}
.about-right { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; }
.about-box {
    background: var(--navy-light);
    border-radius: 12px;
    border: 1px solid rgba(59,130,246,0.2);
    overflow: hidden;
    cursor: pointer;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
    max-height: 70px;
}
.about-box.expanded { 
    max-height: 700px; 
    border-color: var(--blue); 
    box-shadow: 0 10px 40px rgba(37,99,235,0.15);
}


.about-box-header {
    padding: 1.3rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--blue-light);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.95rem;
}
.about-box-header i { transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); color: var(--blue); font-size: 1.1rem; }
.about-box.expanded .about-box-header i { transform: rotate(90deg); }

.about-box-content {
    padding: 0 1.8rem 1.8rem;
    opacity: 0;
    transition: opacity 0.4s 0.15s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.about-box.expanded .about-box-content { opacity: 1; }
.about-box-img {
    width: 100%; 
    height: 360px; 
    object-fit: cover;
    border-radius: 10px; 
    background: #334155;
    display: block;
}

.education-img{
    object-position:center 15%;
}

.code-img{
    object-position:center;
}

.triad-img{
    object-fit:contain;
    background:#132b61;
}

.next-img{
    object-position:center;
}

.about-box-caption {
    color: #f8fafc; font-weight: 700; font-size: 1.1rem;
}
.about-box-meta { color: var(--blue-light); font-size: 0.9rem; font-weight: 500; }
.about-box-text { color: #cbd5e1; line-height: 1.7; }

/* Skills */
#skills {
    background: radial-gradient(circle at bottom left, #172554 0%, #0a0a0a 50%);
    display: flex; flex-direction: column; align-items: center;
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin-top: 2rem;
}
.skill-bubble {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy-light), #0f172a);
    border: 2px solid var(--blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    animation: float 5s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(37,99,235,0.15);
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.skills-category {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--blue-light);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.skill-bubble:hover {
    transform: scale(1.15) translateY(-10px);
    box-shadow:
        0 15px 40px rgba(59,130,246,0.6),
        0 0 60px rgba(96,165,250,0.5);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: var(--blue-light);
}
.skill-bubble:nth-child(2n) { animation-duration: 5.5s; animation-delay: 0.5s; }
.skill-bubble:nth-child(3n) { animation-duration: 6s; animation-delay: 1.2s; }
.skill-bubble:nth-child(5n) { animation-duration: 4.5s; animation-delay: 0.2s; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}
.skill-bubble i { font-size: 2.8rem; color: var(--blue-light); }
.skill-bubble span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.5px;

    text-align: center;
    line-height: 1.2;
    padding: 0 8px;

    white-space: normal;
    word-wrap: break-word;
}

/* Experience */
#experience {
    background: var(--black);
    display: flex; flex-direction: column; align-items: center;
}
.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin-top: 2rem;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--blue-dark), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s ease-out;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
    position: absolute;
    left: -33px; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--blue);
    border: 4px solid var(--black);
    box-shadow: 0 0 0 5px rgba(59,130,246,0.25);
}
.timeline-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--blue-light);
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
    font-weight: 600;
}
.timeline-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 1.8rem;
    border-radius: 14px;
    border: 1px solid rgba(59,130,246,0.12);
    transition: transform 0.3s, border-color 0.3s;
}
.timeline-content:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateX(5px);
}
.timeline-content h3 { color: #f8fafc; margin-bottom: 0.4rem; font-size: 1.25rem; }
.timeline-content h4 { color: var(--blue-light); font-size: 0.95rem; margin-bottom: 1rem; font-weight: 400; }
.timeline-content ul { margin-left: 1.2rem; color: #94a3b8; line-height: 1.7; }
.timeline-content li { margin-bottom: 0.4rem; }

/* Projects */
#projects {
    background: var(--navy);
    display: flex; flex-direction: column; align-items: center;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%; max-width: 1100px;
    margin-top: 2rem;
}
.project-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 16px;
    border: 1px solid rgba(59,130,246,0.12);
    padding: 2.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.project-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 25px 50px rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.4); }
.project-card:hover::before { transform: scaleX(1); }
.project-card h3 { color: #f8fafc; margin-bottom: 1rem; font-size: 1.3rem; letter-spacing: 0.5px; }
.project-card p { color: #94a3b8; margin-bottom: 1.5rem; line-height: 1.6; font-size: 0.95rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
    background: rgba(59,130,246,0.12);
    color: var(--blue-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(59,130,246,0.2);
    letter-spacing: 0.5px;
}
.view-hint {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(10,10,10,0.95);
    border: 2px solid var(--blue);
    color: var(--blue-light);
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 1px;
    pointer-events: none;
}
.project-card:hover .view-hint { transform: translate(-50%, -50%) scale(1); }

/* Video Section */
.video-section {
    width: 100%; max-width: 900px;
    margin-top: 5rem;
    text-align: center;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--navy-light);
    background: #020617;
    transition: border-color 0.3s;
}
.video-wrapper:hover { border-color: var(--blue); }
.video-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: #475569;
    gap: 1rem;
}
.video-placeholder i { font-size: 3.5rem; color: var(--blue); opacity: 0.8; }
.video-placeholder span:nth-child(2) { color: #94a3b8; font-weight: 600; letter-spacing: 1px; }
.video-placeholder span:nth-child(3) { font-size: 0.85rem; color: #475569; }

/* Contact */
#contact {
    background: radial-gradient(circle at top center, #172554 0%, #0a0a0a 65%);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
}
.contact-text { font-size: 1.15rem; color: #94a3b8; margin-bottom: 2.5rem; max-width: 600px; line-height: 1.6; }
.social-links { display: flex; gap: 2.5rem; }
.social-link {
    width: 75px; height: 75px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid rgba(59,130,246,0.25);
    display: flex; justify-content: center; align-items: center;
    color: var(--blue-light);
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}
.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    font-size: 0.8rem;
    color: #94a3b8;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(5px);
    white-space: nowrap;
    font-family: 'Orbitron';
    letter-spacing: 1px;
}
.social-link:hover::after { opacity: 1; transform: translateY(0); }
.social-link:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 15px 35px rgba(59,130,246,0.5);
}

footer {
    background: #020202;
    text-align: center;
    padding: 2.5rem;
    color: #475569;
    font-size: 0.9rem;
    border-top: 1px solid rgba(59,130,246,0.08);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 950px) {
    #home { flex-direction: column-reverse; padding-top: 8rem; }
    #about { flex-direction: column; align-items: center; }
    .hero-left, .hero-right, .about-left, .about-right { flex: none; width: 100%; }
    .typing-container { font-size: 1.9rem; min-height: 2.8rem; }
    .hero-circle { width: 280px; height: 280px; margin: 0 auto 2rem; }
    .about-left { position: relative; top: 0; margin-bottom: 3rem; width: 100%; display: flex; justify-content: center; }
    .about-right { width: 100%; }
    .nav-links { gap: 1.2rem; font-size: 0.85rem; }
    .projects-grid { grid-template-columns: 1fr; max-width: 100%; }
}
@media (max-width: 600px) {
    .typing-container { font-size: 1.5rem; min-height: 2.2rem; }
    .hero-circle { width: 220px; height: 220px; }
    .skills-container { gap: 1.5rem; }
    .skill-bubble { width: 110px; height: 110px; }
    .skill-bubble i { font-size: 2rem; }
    .social-link { width: 60px; height: 60px; font-size: 1.5rem; }
}