/* --- Global Setup & Variables --- */
:root {
    --bg-color: #0d0c22;
    --glass-bg: rgba(26, 30, 51, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color: #f0f0f8;
    --text-secondary: #a0a0b0;
    --primary-neon: #00e5ff; /* Cyan */
    --secondary-neon: #f000ff; /* Magenta */
    --tertiary-neon: #00ff88; /* Green */
    --glow-shadow-primary: 0 0 5px var(--primary-neon), 0 0 15px var(--primary-neon), 0 0 30px var(--primary-neon);
    --glow-shadow-secondary: 0 0 5px var(--secondary-neon), 0 0 15px var(--secondary-neon), 0 0 30px var(--secondary-neon);
    --glow-shadow-tertiary: 0 0 5px var(--tertiary-neon), 0 0 15px var(--tertiary-neon), 0 0 30px var(--tertiary-neon);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Animated Background --- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.shape1 {
    width: 400px;
    height: 400px;
    background: var(--primary-neon);
    top: -100px;
    left: -100px;
    animation: float 20s infinite alternate;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-neon);
    bottom: -50px;
    right: -50px;
    animation: float 25s infinite alternate;
}

.shape3 {
    width: 200px;
    height: 200px;
    background: var(--tertiary-neon);
    top: 50%;
    left: 40%;
    animation: float 15s infinite alternate;
}

.shape4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    top: 10%;
    right: 15%;
    animation: float 22s infinite alternate-reverse;
}

.shape5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary-neon), var(--tertiary-neon));
    bottom: 10%;
    left: 10%;
    animation: float 18s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.1; }
    50% { transform: translate(50px, 70px) scale(1.1) rotate(180deg); opacity: 0.15; }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); opacity: 0.1; }
}

/* --- Glassmorphism Card Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* --- Utility & Reusable Classes --- */
section {
    padding: 100px 8%;
    min-height: 80vh;
}

.section-title, .subsection-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    position: relative;
    z-index: 1;
}

.subsection-title {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-neon);
    color: #000;
    box-shadow: var(--glow-shadow-primary);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-link {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    transition: letter-spacing 0.3s ease;
}

.btn-link:hover {
    letter-spacing: 1px;
}

/* --- 1. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    text-shadow: 0 0 5px var(--primary-neon);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- 1. Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-content h3 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    font-size: 2rem;
    color: var(--primary-neon);
    margin-bottom: 30px;
}

.text-cycle {
    font-weight: 600;
    transition: opacity 0.2s ease-in-out;
}

.text-cycle.fading-out {
    opacity: 0;
}

.hero-buttons {
    margin-top: 30px;
}

@keyframes float-hero-bg {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* Load-in animations for hero */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: load-in 0.4s ease-out forwards;
}
.animate-on-load:nth-child(1) { animation-delay: 0.2s; }
.animate-on-load:nth-child(2) { animation-delay: 0.4s; }
.animate-on-load:nth-child(3) { animation-delay: 0.6s; }
.animate-on-load:nth-child(4) { animation-delay: 0.8s; }

@keyframes load-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- 2. About Me & 3. Profile Picture Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.profile-pic-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.aura-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.aura-ring {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: var(--glow-shadow-primary);
    transform: rotateX(60deg) rotateZ(0deg);
    animation: pulse 2.5s infinite ease-in-out;
}

/* 3D Aura Ring Styles */
.ring1 {
    width: 300px;
    height: 300px;
    border: 3px solid var(--primary-neon);
    animation: spin1 10s linear infinite, pulse 2s 0s infinite ease-in-out;
}

.ring2 {
    width: 280px;
    height: 280px;
    border: 2px solid var(--secondary-neon);
    box-shadow: var(--glow-shadow-secondary);
    animation: spin2 12s linear infinite, pulse 2s 0.5s infinite ease-in-out;
}

.ring3 {
    width: 320px;
    height: 320px;
    border: 2px dashed var(--tertiary-neon);
    box-shadow: var(--glow-shadow-tertiary);
    opacity: 0.7;
    animation: spin3 15s linear infinite, pulse 2s 1s infinite ease-in-out;
}

.ring4 {
    width: 290px;
    height: 290px;
    border: 1px solid rgba(0, 229, 255, 0.5);
    animation: spin4 11s linear infinite, pulse 2s 0.2s infinite ease-in-out;
}

.ring5 {
    width: 310px;
    height: 310px;
    border: 1px solid rgba(240, 0, 255, 0.5);
    animation: spin5 13s linear infinite, pulse 2s 0.7s infinite ease-in-out;
}

/* 3D Spinning Keyframes for each ring */
@keyframes spin1 {
    from { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}
@keyframes spin2 {
    from { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
    to { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
}
@keyframes spin3 {
    from { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}
@keyframes spin4 {
    from { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
    to { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
}
@keyframes spin5 {
    from { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}

/* Glow Pulse Keyframe */
@keyframes pulse {
    0%, 100% { opacity: 1; transform-origin: center; }
    50% { opacity: 0.6; transform-origin: center; }
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--primary-neon);
    margin-bottom: 15px;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.about-content p strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Personal Information Block */
.personal-info-block {
    margin-top: 30px;
    padding: 20px;
    opacity: 0;
}

.personal-info-block h4 {
    color: var(--primary-neon);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.personal-info-block ul {
    list-style: none;
}

.personal-info-block li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.personal-info-block li strong {
    color: var(--text-color);
    font-weight: 600;
    min-width: 80px;
    display: inline-block;
}

/* --- 4. Education Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-bg);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* The "dot" on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
    top: 30px;
    right: -10px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    position: relative;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-neon);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-date {
    position: absolute;
    top: 28px;
    right: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: 30px;
}

/* -------------------------------------- */
/* --- 5. Skills Section (Icon Grid) --- */
/* -------------------------------------- */
.skills-container {
    /* Override old skill bar layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* Style for Devicons */
.skill-icon {
    font-size: 3.5rem; /* Large icon size */
    margin-bottom: 10px;
    line-height: 1;
    /* Devicons use .colored class for colors, but we can add a subtle glow */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.skill-card p {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Remove or hide old skill bar elements (in case they exist in HTML) */
.skill-card h4, .skill-bar {
    display: none;
}

/* -------------------------------------- */
/* --- NEW: Certificates Section --- */
/* -------------------------------------- */
.certificates-container {
    /* New Grid Layout for Certificates */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.certificate-card {
    padding: 0; /* No padding on the card itself */
    overflow: hidden;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);
}

.certificate-image-wrapper {
    /* Dedicated space for the badge or logo */
    /* height: 100%; */
    /* width: 100%; */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2); /* Darker background for logo area */
    /* padding: 15px; */
}

.certificate-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.certificate-content {
    padding: 15px 20px;
    text-align: left;
}

.certificate-content h4 {
    font-size: 1.2rem;
    color: var(--primary-neon); /* Use a different neon color for distinction */
    margin-bottom: 5px;
}

.certificate-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.certificate-footer {
    padding: 10px 20px;
    border-top: 1px dashed var(--border-color);
    text-align: right;
}
/* END Certificate Grid Update */

/* --- 7. Achievements Section --- (This remains a timeline now) */
/* If you want achievements to also be a grid, apply the .certificates-container styles to it. */
.achievements-container {
    /* Keep old timeline structure */
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* ... (Keep other sections unchanged) ... */

/* --- Responsive Design --- (Update needed for timeline removals) */
@media (max-width: 768px) {
    /* ... (mobile menu and hero size remain) ... */

    /* Remove mobile timeline styling for Certificates, as it's now a grid */
    /* Only Education and Achievements will use the mobile timeline logic */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    /* (Keep existing timeline item adjustments for Education/Achievements) */

    /* Certificate Grid on mobile */
    .certificates-container {
        grid-template-columns: 1fr;
    }
}

/* Projects */



.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    padding: 0; /* Remove padding from card body */
    overflow: hidden; /* Ensure image doesn't bleed corners */
    text-align: center;
    /* transition for JS 3D tilt */
    transition: transform 0.1s linear, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-image-wrapper {
    /* Optional: Aspect ratio control */
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px 30px; /* Add padding back to the content block */
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--primary-neon);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}



/* --- 7. Achievements Section --- */
.achievements-container .timeline-content {
    padding-left: 60px; /* Space for icon */
}

.achievement-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--tertiary-neon);
    text-shadow: 0 0 10px var(--tertiary-neon);
}

.achievements-container .timeline-item:nth-child(even) .timeline-content {
    padding-left: 30px;
    padding-right: 60px;
}

.achievements-container .timeline-item:nth-child(even) .achievement-icon {
    left: auto;
    right: 25px;
}

/* --- 8. Interests Section --- */
.interests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.interest-card {
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-neon);
    box-shadow: 0 0 20px rgba(240, 0, 255, 0.2);
}

.interest-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 20px rgba(240, 0, 255, 0.5);
    transition: all 0.3s ease;
}

.interest-card:hover .interest-icon-wrapper {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--glow-shadow-primary), var(--glow-shadow-secondary);
}

.interest-icon {
    font-size: 2.5rem;
    color: var(--bg-color);
}

.interest-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.interest-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- 9. Social Links Section --- */
.social-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 120px;
    text-decoration: none;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-link i {
    font-size: 2.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    color: var(--text-color); /* Default color for icons */
}

.social-link span {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Individual Icon Hover Colors */
.social-link:hover i.fa-instagram {
    color: #e4405f;
    text-shadow: 0 0 10px #e4405f;
}
.social-link:hover i.fa-linkedin-in {
    color: #0a66c2;
    text-shadow: 0 0 10px #0a66c2;
}
.social-link:hover i.fa-tiktok {
    color: #00f2ea;
    text-shadow: 0 0 10px #00f2ea, 0 0 15px #ff0050;
}
.social-link:hover i.fa-facebook-f,
.social-link:hover i.fa-facebook-square {
    color: #1877f2;
    text-shadow: 0 0 10px #1877f2;
}
.social-link:hover i.fa-github {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
}

.social-link:hover {
    transform: scale(1.1);
    border-color: var(--text-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.social-link:hover span {
    color: var(--text-color);
}

/* --- 10. Contact Section --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 10px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 10px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
}

/* Floating Label Animation */
.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-neon);
    background-color: var(--bg-color);
    padding: 0 5px;
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
}

/* --- 11. Footer --- */
.footer {
    text-align: center;
    padding: 30px 8%;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* --- Scroll Reveal Animations --- */
.reveal-fade,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-pop {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade {
    transform: scale(0.9);
}
.reveal-up {
    transform: translateY(50px);
}
.reveal-left {
    transform: translateX(-50px);
}
.reveal-right {
    transform: translateX(50px);
}
.reveal-pop {
    transform: scale(0.8);
}

/* 'visible' class added by JS */
.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    section {
        padding: 80px 5%; /* Adjusted padding */
    }
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.8rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .personal-info-block {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .about-content {
        margin-top: 30px;
    }
    
    /* Skills Icon Grid adjustment */
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }
    /* Mobile Hamburger Menu */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1.5rem 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Timeline on Mobile (Affects Education, Certificates, Achievements) */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: static;
        display: block;
        margin-top: 10px;
        font-size: 0.8rem;
    }
    
    /* Achievements and Certificates mobile icon alignment */
    .achievements-container .timeline-content,
    .achievements-container .timeline-item:nth-child(even) .timeline-content,
    .certificates-container .timeline-content,
    .certificates-container .timeline-item:nth-child(even) .timeline-content {
        padding-left: 60px;
        padding-right: 20px;
    }
    .achievements-container .achievement-icon,
    .achievements-container .timeline-item:nth-child(even) .achievement-icon,
    .certificates-container .achievement-icon,
    .certificates-container .timeline-item:nth-child(even) .achievement-icon {
        left: 20px;
        right: auto;
    }


    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.5rem;
    }
    .btn {
        padding: 10px 22px;
    }

    .aura-container {
        transform: scale(0.8);
    }
    
    /* Social links on mobile */
    .social-link {
        width: 120px;
        height: 100px;
    }
    .social-link i {
        font-size: 2rem;
    }
    .social-link span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Further reduce hero text on small phones */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn-secondary {
        margin-left: 0;
    }
    .section-title {
        font-size: 2rem;
    }
    /* Smallest screen skill grid adjustment */
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
    .skill-icon {
        font-size: 3rem;
    }
}