:root {
    --primary: #165EFE;
    --bg-dark: #000000;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 200vh; /* Just for scrolling test */
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

/* Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    box-shadow: 0 0 20px rgba(22, 94, 254, 0.4);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-light);
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.4s;
    }

    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
}

/* Hero Section */
.hero {
    /* min-height: 100vh; */
    margin-top: 100px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    padding: 0 2rem;
    align-items: center;
}

/* Content Side */
.hero-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(22, 94, 254, 0.3);
}

.hero-typing {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    min-height: 1.6em;
}

.hero-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Visual Side - Card & Blob */
.hero-visual {
    position: relative;
}

.blob-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary), #512da8);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    animation: blobBounce 10s infinite alternate;
}

.hero-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.card-body { margin-top: 1.5rem; font-family: 'Courier New', monospace; }
.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }

@keyframes blobBounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.2); }
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
}

/* About Section */
.about {
    padding: 100px 2rem;
    background: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--primary);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* Image Styling */
.about-image-container {
    position: relative;
}

.about-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #111, #222);
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(22, 94, 254, 0.4);
}

.experience-badge span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Info Styling */
.about-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.personal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.tech-dna h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.dna-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.dna-tags span {
    background: var(--glass);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.dna-tags span:hover {
    border-color: var(--primary);
    background: rgba(22, 94, 254, 0.1);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-container { max-width: 400px; margin: 0 auto; }
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Experience Section */
.experience {
    padding: 100px 2rem;
    background: #050505; /* Slightly lighter than pure black for depth */
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* Timeline Base */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
    padding: 20px 0;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item:nth-child(odd) { padding-right: 50%; text-align: right; }
.timeline-item:nth-child(even) { padding-left: 50%; text-align: left; }

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px var(--primary);
}

/* Timeline Date */
.timeline-date {
    margin-top: 18px;
    margin-left: 30px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Content Card */
.timeline-content {
    background: var(--glass);
    padding: 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 30px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    background: rgba(22, 94, 254, 0.05);
    transform: translateY(-5px);
}

.timeline-content h3 { font-size: 1.3rem; margin-bottom: 5px; }
.company { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-bottom: 10px; }
.project-tag { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; }

.exp-list {
    list-style: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.exp-list li { margin-bottom: 8px; position: relative; }
.timeline-item:nth-child(odd) .exp-list li { padding-right: 15px; }
.timeline-item:nth-child(even) .exp-list li { padding-left: 15px; }

/* Tech Tags */
.stack-used {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: inherit;
}

.stack-used span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--primary);
}

/* Responsive Experience */
@media (max-width: 768px) {
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px !important; padding-right: 0 !important; text-align: left !important; }
    .timeline-dot { left: 30px; }
    .timeline-content { margin: 0; }
    .stack-used { justify-content: flex-start; }
}

/* Skills Section */
.skills {
    padding: 100px 2rem;
    background: var(--bg-dark);
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 50px;
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Skill Card Base */
.skill-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden; /* For the glow effect */
    opacity: 0;
    transform: translateY(20px);
}

/* Animated Glow Border */
.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(22, 94, 254, 0.1),
        transparent
    );
    transition: 0.5s;
}

.skill-card:hover::after {
    left: 100%;
}

.skill-card:hover {
    border-color: var(--primary);
    background: rgba(22, 94, 254, 0.02);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(22, 94, 254, 0.3);
}

/* Icon & Text */
.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    color: #fff;
}

.skill-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.skill-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}


/* Projects Section */
.projects {
    padding: 100px 2rem;
    background: #050505;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 50px;
}

.project-card {
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-img-wrapper {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #111, #165EFE22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-bg i {
    font-size: 4rem;
    color: rgba(22, 94, 254, 0.2);
}

/* Hover Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 94, 254, 0.95);
    display: flex;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content .tag {
    background: #fff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.overlay-content h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.project-links a:hover {
    background: #fff;
    color: var(--primary);
}

/* Info Section */
.project-info {
    padding: 1.5rem;
}

.project-info h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--primary);
    border: 1px solid rgba(22, 94, 254, 0.3);
}

@media (max-width: 480px) {
    .projects-grid { grid-template-columns: 1fr; }
}


/* Contact Section */
.contact {
    padding: 100px 2rem;
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    margin-top: 50px;
}

/* Info Panel */
.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.info-card h4 { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); }
.info-card a, .info-card p { color: #fff; text-decoration: none; font-weight: 500; }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: translateY(-5px);
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(22, 94, 254, 0.05);
    box-shadow: 0 0 15px rgba(22, 94, 254, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #004ae0;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

.footer p { color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; margin-bottom: 5px; }
.footer span { color: var(--primary); font-weight: 600; }

@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* =====================================================
   GLOBAL RESPONSIVE IMPROVEMENTS
=====================================================*/




/* =====================================================
   LARGE TABLET (1024px)
=====================================================*/

@media (max-width:1024px){

    .hero-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-description{
        margin:auto;
    }

    .hero-btns{
        justify-content:center;
        flex-wrap:wrap;
    }

    .hero-stats{
        justify-content:center;
        flex-wrap:wrap;
    }

    .about-grid{
        grid-template-columns:1fr;
        text-align:center;
        gap:3rem;
    }

    .personal-details{
        grid-template-columns:1fr;
    }

    .contact-wrapper{
        grid-template-columns:1fr;
    }
}


/* =====================================================
   TABLET (768px)
=====================================================*/

@media (max-width:768px){

    body{
        font-size:15px;
    }

    /* Navbar */
    .nav-container{
        padding:0 1.5rem;
    }

    .nav-menu{
        gap:20px;
    }

    /* Hero */
    .hero{
        margin-top:80px;
        padding-top:40px;
    }

    .hero-title{
        font-size:2.2rem;
    }

    .hero-typing{
        font-size:1.2rem;
    }

    .hero-stats{
        gap:2rem;
    }

    /* About */
    .about{
        padding:70px 1.5rem;
    }

    .section-title{
        font-size:2rem;
    }

    /* Timeline Mobile Fix */
    .timeline::before{
        left:25px;
    }

    .timeline-item{
        padding-left:70px !important;
        padding-right:0 !important;
        text-align:left !important;
    }

    .timeline-dot{
        left:25px;
    }

    /* Skills */
    .skills-grid{
        grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    }

    /* Projects */
    .projects-grid{
        grid-template-columns:1fr;
    }

    /* Contact */
    .info-card{
        flex-direction:row;
        align-items:flex-start;
    }

}


/* =====================================================
   MOBILE (480px)
=====================================================*/

@media (max-width:480px){

    .navbar{
        padding:1rem 0;
    }

    .nav-logo{
        font-size:1.2rem;
    }

    .hero{
        margin-top:70px;
    }

    .hero-title{
        font-size:1.8rem;
        line-height:1.3;
    }

    .hero-description{
        font-size:0.95rem;
    }

    .hero-btns{
        flex-direction:column;
        gap:1rem;
    }

    .btn-primary,
    .btn-outline{
        width:100%;
        text-align:center;
    }

    .hero-stats{
        flex-direction:column;
        gap:1rem;
    }

    .stat-item h3{
        font-size:1.4rem;
    }

    /* Sections spacing */
    .about,
    .skills,
    .projects,
    .experience,
    .contact{
        padding:60px 1rem;
    }

    /* Cards */
    .project-card{
        border-radius:12px;
    }

    .skill-card{
        padding:2rem 1rem;
    }

    /* Contact form */
    .form-group input,
    .form-group textarea{
        padding:1rem;
        font-size:0.95rem;
    }

    .btn-submit{
        padding:1rem;
    }

    /* Footer */
    .footer{
        padding:2rem 1rem;
    }
}


/* =====================================================
   SMALL DEVICES (360px)
=====================================================*/

@media (max-width:360px){

    .hero-title{
        font-size:1.5rem;
    }

    .section-title{
        font-size:1.6rem;
    }

    .nav-container{
        padding:0 1rem;
    }

    .hero-btns a{
        font-size:0.85rem;
        padding:0.7rem 1rem;
    }

    .skill-icon{
        font-size:2rem;
    }
}
