:root {
    --primary-color: #00d4ff; /* Vivid Cyan */
    --primary-dark: #00a3cc;
    --secondary-color: #0f172a; /* Deep Navy */
    --text-color: #334155; /* Slate Gray */
    --text-light: #94a3b8;
    --bg-color: #ffffff;
    --bg-light: #f8fafc; /* Very Light Blue-Grey */
    --white: #ffffff;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #00d4ff 0%, #005bea 100%);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%), url('https://source.unsplash.com/random/1920x1080/?technology,developer') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(0, 212, 255, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-small {
    display: inline-block;
    background: transparent;
    color: var(--primary-dark);
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
    border-bottom: 2px solid transparent;
}

.btn-small:hover {
    border-bottom: 2px solid var(--primary-dark);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Sections */
.section {
    padding: 6rem 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.skills {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    display: inline-block;
    background: var(--white);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--white);
    position: relative;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-content .date {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    background: #e0f2fe;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* Social Links */
.social-links {
    margin: 2rem 0;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.social-links-footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    color: var(--primary-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.role-tag {
    display: inline-block;
    background-color: #f0f9ff;
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background-color: var(--white);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 70px;
        background: var(--secondary-color);
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0%);
    }

    .nav-links li {
        text-align: center;
        opacity: 1;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --accent-color: #7c3aed;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.project-card,
.timeline-item {
}

footer .social-links-footer a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    margin: 0 10px;
    transition: all 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

footer .social-links-footer a:hover {
    color: #ffffff;
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
}

#contact .social-links-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 1.5rem;
}

#contact .social-links-footer a {
    color: var(--secondary-color);
    background: rgba(124, 58, 237, 0.08);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#contact .social-links-footer a:hover {
    color: #ffffff;
    background: var(--gradient);
    transform: translateY(-3px);
}
