/*=============================================
=            CSS Variables                    =
=============================================*/
:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-hover: #1a1a1a;
    --gold: #D4AF37;
    --gold-light: #F2C94C;
    --gold-glow: rgba(212, 175, 55, 0.5);
    --gold-glow-soft: rgba(212, 175, 55, 0.15);
    
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --text-dark: #333333;
    
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/*=============================================
=            Reset & Base Styles              =
=============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

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

li {
    list-style: none;
}

/* Particles Background Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/*=============================================
=            Typography & Utilities            =
=============================================*/
.row-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.glow-hover {
    transition: var(--transition);
}

.glow-hover:hover {
    box-shadow: 0 0 20px var(--gold-glow-soft);
    border-color: var(--gold-glow);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--gold-glow-soft);
}

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

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold-glow-soft);
    box-shadow: 0 4px 15px var(--gold-glow-soft);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/*=============================================
=            Navigation                        =
=============================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.dot {
    color: var(--gold);
}

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

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

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

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold);
}

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

/*=============================================
=            Hero Section                      =
=============================================*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    max-width: 400px;
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.role {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--gold-glow-soft);
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/*=============================================
=            Stats Section                     =
=============================================*/
.stats {
    padding: 2rem 0;
    margin-bottom: 6rem;
}

.stat-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--glass-border);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/*=============================================
=            About Section                     =
=============================================*/
.about {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-gold {
    background: var(--gold-glow-soft);
    color: var(--gold);
    border: 1px solid var(--gold-glow);
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-bar-container {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.progress-line {
    width: 100%;
    height: 8px;
    background: var(--surface-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-line span {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 4px;
    width: 0; /* Animated via JS */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
}

/*=============================================
=            Education Timeline                =
=============================================*/
.education {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--gold);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 15px var(--gold);
    background: var(--gold);
}

.timeline-date {
    position: absolute;
    top: -5px;
    width: 50%;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 0;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 0;
    text-align: left; /* fixed layout issue for alternating */
}
/* Properly align dates opposite to content */
.timeline-item:nth-child(odd) .timeline-date {
    right: auto;
    left: 50%;
    text-align: left;
}
.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: 50%;
    text-align: right;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    width: calc(100% - 2rem);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-content:hover {
    border-color: var(--gold-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

/*=============================================
=            Skills Grid                       =
=============================================*/
.skills {
    padding: 6rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.skill-card:hover {
    border-color: var(--gold-glow);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.skill-card:hover .card-icon {
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: var(--surface-color);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-card:hover .tag {
    border-color: var(--gold-glow-soft);
    color: var(--text-main);
}

/*=============================================
=            Tech Stack Marquee                =
=============================================*/
.tech-marquee {
    margin: 4rem auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    max-width: 100%;
}

.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
}

.marquee-content span.dot-separator {
    color: var(--gold);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/*=============================================
=            Projects Section                  =
=============================================*/
.projects {
    padding: 6rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--gold-glow);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--gold);
}

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

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--gold);
}

.project-body {
    flex-grow: 1;
}

.project-body h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-card:hover .group-hover {
    color: var(--gold);
}

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

.project-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.project-footer span {
    border: 1px solid var(--glass-border);
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--surface-hover);
}

/*=============================================
=        Certifications & Interests            =
=============================================*/
.certifications-interests {
    padding: 6rem 0;
}

.ci-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.ci-col .section-title {
    text-align: left;
    font-size: 2rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.cert-card:hover {
    border-color: var(--gold-glow);
    transform: translateX(10px);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--gold);
    background: var(--surface-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cert-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.interest-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.interest-badge {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 200px;
}

.interest-badge i {
    color: var(--gold);
    font-size: 1.5rem;
}

/*=============================================
=            Contact Section                   =
=============================================*/
.contact {
    padding: 6rem 0 10rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem;
}

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

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.05rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/*=============================================
=            Footer                            =
=============================================*/
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    text-align: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

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

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

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

/*=============================================
=            Responsive Design                 =
=============================================*/
@media (max-width: 992px) {
    .about-content,
    .ci-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 80px;
        text-align: left;
        top: -30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .stat-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stat-item:not(:last-child)::after {
        right: 50%;
        bottom: -1.5rem;
        top: auto;
        height: 1px;
        width: 50%;
        transform: translateX(50%);
    }
    
    .contact-container {
        padding: 2rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
}
