/* ============================= */
/* CSS VARIABLES */
/* ============================= */
:root {
    --primary-bg: #0A192F;
    --secondary-bg: #112240;
    --accent: #00F5D4;
    --accent2: #00BBF9;
    --text-light: #E6F1FF;
    --text-muted: #8892B0;
}

/* ============================= */
/* GLOBAL RESET */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--primary-bg);
    color: var(--text-light);
    scroll-behavior: smooth;
}

/* ============================= */
/* NAVIGATION BAR */
/* ============================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 0;
    background: #0a192f; /* solid dark blue */
    border-bottom: 1px solid rgba(0, 245, 212, 0.15);
    z-index: 1000;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #ccd6f6;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #00f5d4, #00bbf9);
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #00f5d4;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Profile Image */
.hero-left {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

/* Hero Text Content */
.hero-right h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-right h2 {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.hero-right p {
    max-width: 420px;
    margin-bottom: 20px;
}

/* Gradient Name Effect */
.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CV Download Button */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--accent);
    border: 2px solid var(--accent);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: .3s;
    z-index: -1;
}

.primary-btn:hover {
    color: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

.primary-btn:hover::before {
    opacity: 1;
}

/* Social Media Icons */
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 18px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 18px;
    transition: .3s;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary-bg);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.6);
}

/* Floating Technology Labels */
.floating-icons span {
    position: absolute;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent);
    opacity: 0.35;
    animation: float 10s infinite ease-in-out alternate;
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

/* Different sizes for depth effect */
.floating-icons span:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 18px;
}

.floating-icons span:nth-child(2) {
    top: 70%;
    left: 15%;
    font-size: 16px;
}

.floating-icons span:nth-child(3) {
    top: 30%;
    right: 15%;
    font-size: 20px;
}

.floating-icons span:nth-child(4) {
    bottom: 20%;
    right: 20%;
    font-size: 17px;
}

.floating-icons span:nth-child(5) {
    top: 10%;
    right: 40%;
    font-size: 15px;
}

.floating-icons span:nth-child(6) {
    bottom: 15%;
    left: 40%;
    font-size: 19px;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-40px);
    }
}

/* ============================= */
/* COMMON SECTION STYLES */
/* ============================= */
.section {
    padding: 120px 10%;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--secondary-bg);
}

.section-darker {
    background: #0c203a;
}

/* Top gradient overlay */
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        180deg,
        rgba(0, 245, 212, 0.05),
        transparent
    );
    pointer-events: none;
}

/* Bottom divider line */
.section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
    opacity: 0.25;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

/* ============================= */
/* ABOUT SECTION */
/* ============================= */
.about-text {
    max-width: 800px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 18px;
}

.about-list {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-list li {
    margin-bottom: 8px;
    position: relative;
}

.about-list li::marker {
    color: var(--accent);
}

/* ============================= */
/* SKILLS SECTION */
/* ============================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
    transition: .3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.25);
}

/* ============================= */
/* PROJECTS SECTION */
/* ============================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--primary-bg);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 245, 212, 0.15);
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 35px rgba(0, 245, 212, 0.25);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px;
    transition: 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.04);
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-stack span {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    background: rgba(0, 245, 212, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
    transition: 0.3s ease;
}

.tech-stack span:hover {
    background: var(--accent);
    color: #000;
}

.project-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.project-highlights {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.project-highlights li {
    margin-bottom: 6px;
}

/* ============================= */
/* CERTIFICATIONS SECTION */
/* ============================= */
.cert-list {
    list-style: none;
    line-height: 2;
    color: var(--text-muted);
    font-size: 17px;
    margin-top: 30px;
}

.cert-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.cert-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background: var(--primary-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 212, 0.15);
    transition: 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.2);
}

.cert-card h3 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cert-card h3 span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.cert-org {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.cert-card ul {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.cert-card ul li {
    margin-bottom: 6px;
}

/* Timeline Layout */
.timeline {
    position: relative;
    margin-top: 50px;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(var(--accent), transparent);
    transform: translateX(-50%);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.timeline-content {
    background: var(--primary-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 212, 0.15);
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.timeline-link:hover .timeline-content {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.25);
    cursor: pointer;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
}

.timeline-item.left::after {
    right: -7px;
}

.timeline-item.right::after {
    left: -7px;
}

.timeline-content h3 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-content h3 span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.timeline-org {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.ongoing {
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 8px;
}

/* Highlight current certifications */
.timeline-item.current .timeline-content {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.25);
}

/* ============================= */
/* EDUCATION SECTION */
/* ============================= */
/* ============================= */
/* EDUCATION SECTION */
/* ============================= */
.education-section {
    position: relative;
    z-index: 5;
}

.education-grid {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Make the entire card clickable */
.education-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.education-card {
    padding: 25px;
    border-radius: 18px;
    background: var(--primary-bg);
    border: 1px solid rgba(0, 245, 212, 0.15);
    color: var(--text-muted);
    transition: 0.3s ease;
    position: relative;
}

.education-link:hover .education-card {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.2);
    transform: translateY(-6px);
    cursor: pointer;
}

.education-card h3 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 20px;
}

.edu-date {
    display: inline-block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
    opacity: 0.8;
}

.edu-institute {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--accent);
}

.edu-location {
    font-size: 14px;
    opacity: 0.75;
}
/* ============================= */
/* CONTACT SECTION */
/* ============================= */
.contact-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 26px;
    border-radius: 30px;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent);
    color: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* Hero Section - Mobile */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-right p {
        margin: auto;
    }
}

/* Projects Grid - Mobile */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline - Mobile */
@media (max-width: 900px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 0;
    }

    .timeline-dot {
        left: -6px;
    }
}