:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --secondary-text: #888888;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glow-color: rgba(255, 255, 255, 0.15);
    --card-hover: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border: 1px solid white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s, width 0.3s, height 0.3s;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

/* Background Abstract Blob */
#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.greeting {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 10px;
    display: block;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    position: relative;
}

.highlight {
    background: linear-gradient(90deg, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--secondary-text);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    max-width: 450px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn.primary {
    background: var(--accent-color);
    color: #000;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
}

.btn.secondary:hover {
    background: var(--glass-bg);
}

.hero-visual {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-block {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

pre {
    color: #bbb;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.code-badge {
    position: absolute;
    bottom: 20px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Sections General */
section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-profile-img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.about-profile-img:hover {
    transform: scale(1.02);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    font-size: 1.1rem;
    color: #ccc;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Experience (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 5px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-text);
    z-index: 2;
    top: -15px;
}

.timeline-content {
    width: 45%;
    margin-left: auto;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content ul {
    direction: rtl;
    /* For bullet alignment */
    padding-right: 20px;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.timeline-content .location {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-position: inside;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
}

.languages .lang-item {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 3px;
    margin: 5px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-color);
}

.cert-list {
    list-style: none;
}

.cert-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-accordion-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.cert-accordion-header:hover {
    opacity: 0.8;
}

.cert-accordion-header span {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.cert-accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.cert-accordion-content {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0;
    margin: 0;
}

.cert-accordion-item.active .cert-accordion-content {
    max-height: 1000px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.cert-accordion-content li {
    padding: 8px 0 8px 30px;
    border-bottom: none;
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.edu-card .year {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.edu-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.edu-inner .logo-container {
    flex-shrink: 0;
}

.edu-card .company-logo {
    height: 60px;
    width: auto;
    border-radius: 5px;
    background-color: #fff;
    padding: 5px;
}

/* Contact */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-link {
    display: block;
    margin: 20px 0;
    font-size: 1.2rem;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.contact-link:hover {
    background: var(--accent-color);
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    .nav-links {
        display: none;
        /* Add JS toggle for mobile menu later if needed, keep simple for now */
    }

    h1 {
        font-size: 2.5rem;
    }

    #hero {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 50px;
        text-align: center;
        padding-top: 100px;
    }

    .hero-visual {
        transform: none;
    }

    .code-block {
        width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        margin-left: 20px;
    }

    .timeline-content {
        width: 100%;
        text-align: left !important;
        margin-left: 20px !important;
    }

    .timeline-date {
        left: 0;
        transform: none;
        position: relative;
        top: 0;
        display: inline-block;
        margin-bottom: 10px;
        margin-left: 20px;
    }
}

/* Reduced padding for a more compact card */
.timeline-content.glass-card {
    padding: 15px 20px;
}

.timeline-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced gap */
}

.timeline-item:nth-child(odd) .timeline-inner {
    flex-direction: row;
    /* Ensure text aligns left next to the logo, overriding the parent's text-align: right */
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-inner {
    flex-direction: row;
    /* Text first, Logo second as per HTML structure */
    text-align: left;
    align-items: flex-start;
    /* Align logo to top */
}

/* For even items, we might want to reverse if we had logos there too, but let's keep it simple for now or strictly follow the user request for this specific item */

.company-logo {
    height: 50px;
    /* Slightly smaller to fit compact card */
    width: auto;
    display: block;
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    padding: 3px;
}

.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove old specific alignment for logo since flex handles it */
.timeline-item:nth-child(odd) .timeline-content .company-logo {
    margin: 0;
}

/* Override location margin for compact look */
.timeline-content .location {
    margin-bottom: 0;
}