/* Global Styles */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-primary: #00f260;
    --accent-secondary: #0575e6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-text: linear-gradient(45deg, #00f260, #0575e6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: #0575e6;
    top: -100px;
    left: -100px;
}

.globe-2 {
    width: 300px;
    height: 300px;
    background: #00f260;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.globe-3 {
    width: 200px;
    height: 200px;
    background: #e43a15;
    /* Hint of warm color */
    top: 40%;
    left: 60%;
    opacity: 0.2;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Utilities */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.btn-primary {
    background: var(--gradient-text);
    color: #fff;
    box-shadow: 0 4px 15px rgba(5, 117, 230, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(5, 117, 230, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 242, 96, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #bbb;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #888;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--accent-primary);
}

.freelance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 96, 0.15);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 96, 0.3);
}

.pulse-animation i {
    font-size: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 96, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 242, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 96, 0);
    }
}

.summary {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-text);
    border-radius: 2px;
}

.section-title i {
    color: var(--accent-secondary);
    margin-right: 10px;
}

/* Timeline/Experience */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(180px);
    /* Moved line to the right of the date */
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    width: 170px;
    /* Increased width */
    padding-right: 20px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    /* Increased font size */
    color: #fff;
    /* Changed to white for better visibility */
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.4;
}

.timeline-content {
    width: calc(100% - 200px);
    /* Adjusted width */
    margin-left: auto;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -30px;
    /* Adjusted dot position */
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--accent-secondary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(5, 117, 230, 0.5);
    /* Added glow */
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: #fff;
}

.timeline-content h4 {
    margin-bottom: 15px;
    font-weight: 400;
    color: #aaa;
    font-size: 0.95rem;
}

.tech-stack {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #ccc;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
}

.timeline-content ul {
    list-style-type: none;
    /* Custom markers */
    margin-top: 10px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.timeline-content ul li::before {
    content: '▹';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.skill-card {
    text-align: center;
    padding: 40px 20px;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card .year {
    display: inline-block;
    background: rgba(5, 117, 230, 0.2);
    color: var(--accent-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.edu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.edu-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.footer h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: background 0.3s;
}

.footer-link:hover {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.copyright {
    color: #666;
    font-size: 0.8rem;
    margin-top: 40px;
}

/* Scroll Animations CSS Helper */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Entrance Animations */
.bounce-in {
    animation: bounce 1s ease;
}

@keyframes bounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: #0a0a0a;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: left;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 242, 96, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 96, 0.1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal h2 i {
    color: var(--accent-primary);
}

.modal p {
    color: #bbb;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal-link:hover:not(.no-hover) {
    background: rgba(0, 242, 96, 0.1);
    border-color: rgba(0, 242, 96, 0.3);
    transform: translateX(5px);
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.modal-link:hover .icon-box {
    background: var(--accent-primary);
    color: #000;
}

.text-box {
    display: flex;
    flex-direction: column;
}

.text-box span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-box strong {
    color: #fff;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        position: relative;
        width: 100%;
        text-align: left;
        padding-left: 50px;
        margin-bottom: 10px;
    }

    .timeline-content {
        width: 100%;
        padding-left: 50px;
        /* Make space for line */
    }

    .timeline-content::before {
        left: 14px;
        /* Align with new line position */
    }
}