* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: black;
    --second-bg-color: #030000;
    --text-color: white;
    --main-color: #0466C8;
    --diff-color: rgb(97, 53, 216);
}

html {
    font-size: 70%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 6% 1.2rem;
    background: rgb(44, 40, 40);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 0.5rem;
}

span {
    color: var(--main-color);
}

.logo span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-img {
    border-radius: 50%;
    object-fit: contain;
}

.home-img img {
    object-fit: cover;
    height: 350px;
    width: 350px;
    position: relative;
    top: 3rem;
    border-radius: 80%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 10px var(--main-color),
        0 0 100px var(--main-color);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.4s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation {
    font-size: 34px;
    font-weight: 700;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Cybersecurity Analyst";
    color: #979DAC;
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 105%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 4px solid var(--main-color);
    }
}

@keyframes words {
    0%, 20% {
        content: "Forensics Investigator";
    }
    41%, 60% {
        content: "Penetration Tester";
    }
    61%, 80% {
        content: "CTF Player";
    }
}

@keyframes typing {
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

/* About Section */
.About {
    width: 80%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 70px 0;
    text-align: center;
}

.heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.heading span {
    color: var(--diff-color);
}

.heading::after {
    content: '';
    width: 60px;
    height: 4px;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 40px;
}

.about-container:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.4);
}

.about-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0px 8px 20px var(--main-color);
    border: 3px solid rgb(247, 247, 248);
}

.about-content {
    flex: 2;
    text-align: left;
    padding: 20px;
}

.about-content h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.role {
    color: var(--diff-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: linear-gradient(to right, rgba(0, 0, 255, 0.1), rgba(0, 102, 255, 0.1));
    border-radius: 8px;
    display: inline-block;
}

.description {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 25px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.contact-info {
    font-size: 1rem;
    color: var(--diff-color);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info p {
    margin: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info p:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

/* Education Section */
.education {
    padding: 90px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.education h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
}

.education h2::after {
    content: '';
    width: 50px;
    height: 3px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.subsection-title {
    color: var(--main-color);
    font-size: 1.8em;
    margin: 20px 0;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.education-container {
    margin-bottom: 40px;
}

.education-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-card h4 {
    color: var(--diff-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.institute {
    color: #999;
    font-style: italic;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.duration {
    color: #666;
    font-size: 1.1rem; /* Fixed syntax error: removed comma from 1,1rem */
    margin-bottom: 10px;
}

.details {
    color: #ccc;
    line-height: 1.7;
    font-size: 1.07rem;
}

.certifications-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.certification-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.cert-image {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 3px;
}

.cert-content h4 {
    color: var(--diff-color);
    margin-bottom: 8px;
    font-size: 1.3em;
}

.issuer {
    color: #999;
    font-style: italic;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    width: 80%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px 0;
    text-align: center;
    background: var(--bg-color);
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-form {
    width: 100%;
    max-width: 500px;
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.contact-form h3:hover {
    color: #0033cc;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color); /* Fixed to use --main-color for consistency */
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.3);
    outline: none;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 12px 25px;
    background: darkblue;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background: var(--main-color);
    transform: scale(1.05);
}

/* Footer Styles */
.footer {
    background: #050c16;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid #4b4c50;
    text-align: center;
    font-family: Arial, sans-serif;
}

.footer-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links h3:hover,
.footer-contact h3:hover {
    color: #0033cc;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: #00f;
    transform: translateX(5px);
}

.footer-contact p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    font-size: 1.1rem;
    color: #00f;
    transition: color 0.3s ease;
}

.footer-contact i:hover {
    color: #0033cc;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: #0a1a2f;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    background: #00f;
    color: #fff;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.footer-copyright p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

body * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

/* Media Queries for Responsive Design */

/* Existing Smaller Screens */
@media (max-width: 1024px) {
    .home {
        gap: 5rem;
    }
    
    .home-img img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 4%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: rgb(44, 40, 40);
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar.active {
        display: inline;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 4%;
        background: rgb(44, 40, 40);
        border-radius: 0 0 10px 10px;
        /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); */
        animation: fadeInDown 0.6s ease forwards;
        z-index: 99;
        word-spacing: 6px;
    }

    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    

    .navbar a {
        margin: 1rem 0;
        font-size: 1.2rem;
        
    }

    section {
        padding: 6rem 5%;
    }

    .home {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .home-content {
        align-items: center;
    }

    .home-img img {
        width: 250px;
        height: 250px;
        top: 0;
    }

    .About {
        width: 90%;
        margin: 40px auto;
    }

    .description {
        border-bottom: none;
    }

    .education {
        padding: 30px 15px;
    }

    .certification-card {
        flex-direction: column;
        text-align: center;
    }

    .cert-image {
        margin-bottom: 10px;
    }

    .contact {
        width: 90%;
        margin: 40px auto;
    }

    .contact-container {
        padding: 20px;
    }

    .heading {
        font-size: 2.5rem;
    }

    .contact-form h3 {
        font-size: 1.8rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact-form button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .footer {
        padding: 20px 0 15px;
        margin-top: 40px;
    }

    .footer-container {
        width: 90%;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links,
    .footer-contact,
    .footer-social {
        min-width: auto;
    }

    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        font-size: 1.3rem;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 0.9rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-copyright {
        margin-top: 15px;
        padding-top: 10px;
    }

    .footer-copyright p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar{
        position: sticky;
        top: 0%;
    }
    .header {
        /* position: sticky; */
        padding: 1rem 3%;
        margin: 0px auto;
       
    }

    .home-content h1 {
        font-size: 3rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .text-animation {
        font-size: 24px;
        min-width: 200px;
    }

    .social-icons a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
        margin: 2rem 1rem 2rem 0;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }
}

/* New Media Queries for Larger Screens */
@media (min-width: 1440px) {
    html {
        font-size: 72%; 
        margin: 0.1%;
    }

    .header {
        padding: 2.2rem 7%;
    }

    .logo {
        font-size: 2.2rem;
    }

    .navbar a {
        font-size: 1.6rem;
        margin-left: 2.5rem;
    }

    section {
        padding: 11rem 14% 11rem;
    }

    .home {
        gap: 12rem;
    }

    .home-content h1 {
        font-size: 4.2rem; 
    }

    .home-content h3 {
        font-size: 3.7rem; 
    }

    .home-img img {
        width: 400px;
        height: 400px;
    }

    .social-icons a {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2.4rem;
    }

    .btn {
        padding: 1.1rem 3rem;
        font-size: 1.7rem;
    }

    .text-animation {
        font-size: 36px;
        min-width: 300px;
    }

    .About {
        max-width: 1400px;
    }

    .heading {
        font-size: 3.2rem;
    }

    .about-image img {
        width: 280px;
        height: 280px;
    }

    .about-content h3 {
        font-size: 2.4rem;
    }

    .role {
        font-size: 1.4rem;
    }

    .description {
        font-size: 1.3rem;
    }

    .contact-info {
        font-size: 1.1rem;
    }

    .education {
        max-width: 1200px;
    }

    .education h2 {
        font-size: 2.7em;
    }

    .subsection-title {
        font-size: 1.9em;
    }

    .education-card h4 {
        font-size: 1.6em;
    }

    .institute,
    .duration,
    .details {
        font-size: 1.2rem;
    }

    .cert-content h4 {
        font-size: 1.4em;
    }

    .issuer {
        font-size: 1.2rem;
    }

    .contact {
        max-width: 1400px;
    }

    .contact-form {
        max-width: 550px;
    }

    .contact-form h3 {
        font-size: 2.2rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 13px;
        font-size: 1.1rem;
    }

    .contact-form button {
        padding: 13px 28px;
        font-size: 1.2rem;
    }

    .footer-container {
        max-width: 1400px;
    }

    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        font-size: 1.6rem;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 1.1rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .footer-copyright p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 74%;
    }

    .header {
        padding: 2.5rem 8%;
    }

    .logo {
        font-size: 2.4rem;
    }

    .navbar a {
        font-size: 1.7rem;
        margin-left: 3rem;
    }

    section {
        padding: 12rem 15% 12rem;
    }

    .home {
        gap: 14rem;
        margin-bottom: 0.1% auto;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .home-content h3 {
        font-size: 3.9rem;
    }

    .home-img img {
        width: 450px;
        height: 450px;
    }

    .social-icons a {
        width: 5rem;
        height: 5rem;
        font-size: 2.6rem;
    }

    .btn {
        padding: 1.2rem 3.2rem;
        font-size: 1.8rem;
    }

    .text-animation {
        font-size: 38px;
        min-width: 320px;
    }

    .About {
        margin-top: 0.1%;
        max-width: 1600px;
    }

    .heading {
        font-size: 3.4rem;
    }

    .about-image img {
        width: 300px;
        height: 300px;
    }

    .about-content h3 {
        font-size: 2.5rem;
    }

    .role {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1.4rem;
    }

    .contact-info {
        font-size: 1.2rem;
    }

    .education {
        max-width: 1400px;
    }

    .education h2 {
        font-size: 2.9em;
    }

    .subsection-title {
        font-size: 2em;
    }

    .education-card h4 {
        font-size: 1.7em;
    }

    .institute,
    .duration,
    .details {
        font-size: 1.3rem;
    }

    .cert-content h4 {
        font-size: 1.5em;
    }

    .issuer {
        font-size: 1.3rem;
    }

    .contact {
        max-width: 1600px;
    }

    .contact-form {
        max-width: 600px;
    }

    .contact-form h3 {
        font-size: 2.4rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px;
        font-size: 1.2rem;
    }

    .contact-form button {
        padding: 14px 30px;
        font-size: 1.3rem;
    }

    .footer-container {
        max-width: 1600px;
    }

    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        font-size: 1.7rem;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 1.2rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .footer-copyright p {
        font-size: 1.4rem;
    }
}

/* Experience Section */
.experience {
    padding: 90px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.experience h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
}

.experience h2::after {
    content: '';
    width: 50px;
    height: 3px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.experience-container {
    margin-bottom: 40px;
}

.experience-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.experience-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(4, 102, 200, 0.5);
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.experience-content h4 {
    color: var(--diff-color);
    margin-bottom: 6px;
    font-size: 1.4em;
}

.experience-role {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.experience-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.experience-meta .institute {
    color: #999;
}

.experience-meta .duration {
    color: #666;
}

/* Experience Timeline (Formal) */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 24px;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(4,102,200,0.6), rgba(97,53,216,0.6));
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 24px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 0 4px rgba(4,102,200,0.15);
}

.timeline-card {
    background: #111418;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 16px;
    align-items: center;
}

.timeline-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #1a1f27;
    border: 1px solid rgba(255,255,255,0.08);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-header h4 {
    color: #e6e6e6;
    font-size: 1.3rem;
    line-height: 1.3;
}

.timeline-company {
    color: #9aa3b2;
    font-size: 1rem;
}

.timeline-date {
    color: #7f8a99;
    font-size: 0.95rem;
    white-space: nowrap;
}

.timeline-desc {
    grid-column: 2 / span 2;
    color: #c8d0db;
    margin-top: 6px;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Experience Feature Card (Single) */
.experience-feature {
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #0f1318;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 20px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
}

.feature-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #1a1f27;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 14px rgba(4,102,200,0.4);
}

.feature-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.feature-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-title h4 {
    color: #e9eef5;
    font-size: 1.4rem;
}

.feature-company {
    color: #9aa3b2;
    font-size: 1.05rem;
}

.feature-date {
    color: #7f8a99;
    font-size: 0.98rem;
    white-space: nowrap;
}

.feature-points {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-left: 1.2rem;
    display: grid;
    gap: 8px;
}

.feature-points li {
    color: #c8d0db;
    font-size: 1.04rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .experience-items {
        grid-template-columns: 1fr;
    }

    .experience-card {
        flex-direction: row;
        text-align: left;
    }

    .timeline-card {
        grid-template-columns: 48px 1fr;
    }

    .timeline-date {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    .timeline-desc {
        grid-column: 2;
    }
}