:root {
    --navy: #0a192f;
    --navy-rgb: 10, 25, 47;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --white: #e6f1ff;
    --cyan: #64ffda;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

[data-theme="light"] {
    --navy: #ffffff;
    --navy-rgb: 255, 255, 255;
    --light-navy: #f0f2f5;
    --lightest-navy: #d1d5db;
    --slate: #4b5563;
    --light-slate: #6b7280;
    --white: #0a192f;
    --cyan: #0d9488;
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.theme-btn:hover,
.theme-btn:active,
.theme-btn:focus {
    color: var(--cyan);
    transform: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 5px;
    border: 2px solid var(--navy);
    box-shadow: 0 0 5px rgba(100, 255, 218, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    box-shadow:
        0 0 10px var(--cyan),
        0 0 20px var(--cyan),
        0 0 40px var(--cyan),
        inset 0 0 5px var(--cyan);
}

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

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

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

h1,
h2,
h3,
h4 {
    color: var(--white);
    margin-bottom: 20px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.highlight {
    color: var(--cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(var(--navy-rgb), 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--cyan);
}

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

.nav-links a {
    font-size: 13px;
    color: var(--white);
}

.nav-links a:hover {
    color: var(--cyan);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h3 {
    font-size: 16px;
    color: var(--cyan);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero .container {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
    max-width: 60%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 40%;
}

.hero-image svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Navbar Mobiles */
    .container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .logo {
        font-size: 18px;
    }

    .theme-btn {
        margin-top: 2px;
    }

    .theme-btn svg {
        width: 16px;
        height: 16px;
    }

    .section {
        padding: 60px 0;
    }
}

.hero p {
    max-width: 540px;
    font-size: 18px;
    margin-bottom: 50px;
}

/* Stack / Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.card {
    background-color: var(--light-navy);
    padding: 32px;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

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

.card-icon {
    font-size: 40px;
    color: var(--cyan);
    margin-bottom: 24px;
    display: block;
}

.card h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--lightest-navy);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 60px;
}

/* removed .timeline-item::after */

.timeline-date {
    font-family: monospace;
    color: var(--cyan);
    font-size: 13px;
    position: relative;
    /* Removed duplicate color property */
    transition: var(--transition);
}

.timeline-date::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cyan);
}

.social-link:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Contact */
/* Contact */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 50px auto 0;
}

.contact-socials {
    text-align: center;
    background: none;
    box-shadow: none;
    padding: 0;
}

.contact-socials h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-socials p {
    margin-bottom: 30px;
    font-size: 15px;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1), transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.delay-4 {
    transition-delay: 400ms;
}

/* Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader svg {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
    transform-origin: center center;
    position: absolute;
    top: 0;
    left: 0;
}

.loader circle {
    stroke: var(--cyan);
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 100, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

#test2 {
    stroke: var(--light-slate);
    animation-delay: -0.5s;
    opacity: 0.3;
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-main);
    color: var(--cyan);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}