/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2f6fed;
    --secondary-color: #1f4fb0;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 60px;
    background: var(--bg-light);
    gap: 3rem;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 28px rgba(47, 111, 237, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 28px rgba(47, 111, 237, 0.25);
}

.btn::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.35s ease;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(5.5);
}

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

/* Orbital Animation */
.orbit {
    position: relative;
    width: 600px;
    height: 600px;
}

.orbit-icon {
    width: 2em;
    height: 2em;
    line-height: 2em;
    font-size: 1.2em;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(47, 111, 237, 0.4);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.orbit-icon:hover {
    box-shadow: 0 0 25px rgba(47, 111, 237, 0.9);
}

.orbit-wrap {
    height: 600px;
    width: 600px;
    list-style: none;
    font-size: 1.3em;
    position: relative;
}

.orbit-wrap > li {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Stack rings properly - inner rings on top */
.orbit-wrap > li:nth-child(2) {
    z-index: 4;
}

.orbit-wrap > li:nth-child(3) {
    z-index: 3;
}

.orbit-wrap > li:nth-child(4) {
    z-index: 2;
}

/* Ring hover effect - highlight hovered ring, dim others (only when icon is hovered) */
.orbit-wrap > li:not(.orbit-center):has(.orbit-icon:hover) ul {
    border-width: 3px;
    border-color: rgba(47, 111, 237, 0.6);
}

/* When any icon is hovered, dim all other rings */
.orbit-wrap:has(.orbit-icon:hover) > li:not(:has(.orbit-icon:hover)):not(.orbit-center) ul {
    border-color: rgba(47, 111, 237, 0.15);
}

.orbit-wrap:has(.orbit-icon:hover) > li:not(:has(.orbit-icon:hover)):not(.orbit-center) ul li {
    opacity: 0.4;
}

ul[class^="ring"] {
    border: solid 2px rgba(47, 111, 237, 0.15);
    position: relative;
    padding: 0;
    border-radius: 50%;
    list-style: none;
    box-sizing: content-box;
    transition: all 300ms ease-in-out;
    pointer-events: none;
}

ul[class^="ring"] li {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2em;
    height: 2em;
    margin: -1em 0 0 -1em;
    transition: all 300ms ease-in-out;
    pointer-events: auto;
}

ul[class^="ring"] li:hover {
    z-index: 100;
    width: 4.4em;
    height: 4.4em;
    margin: -2.2em 0 0 -2.2em;
}

ul[class^="ring"] li:hover .orbit-icon {
    font-size: 2.64em;
}

/* Ring 0: 3 items */
.ring-0 {
    width: 220px;
    height: 220px;
    animation: clockwise-rotate-0 30s linear infinite;
    z-index: 3;
}

.ring-0 i {
    animation: counterclockwise-rotate-0 30s linear infinite;
}

.ring-0 > li:nth-of-type(1) {
    transform: rotate(0deg) translateY(-110px) rotate(0deg);
}

.ring-0 > li:nth-of-type(2) {
    transform: rotate(120deg) translateY(-110px) rotate(-120deg);
}

.ring-0 > li:nth-of-type(3) {
    transform: rotate(240deg) translateY(-110px) rotate(-240deg);
}

/* Ring 1: 3 items */
.ring-1 {
    width: 340px;
    height: 340px;
    animation: clockwise-rotate-1 40s linear infinite;
    z-index: 2;
}

.ring-1 i {
    animation: counterclockwise-rotate-1 40s linear infinite;
}

.ring-1 > li:nth-of-type(1) {
    transform: rotate(0deg) translateY(-170px) rotate(0deg);
}

.ring-1 > li:nth-of-type(2) {
    transform: rotate(120deg) translateY(-170px) rotate(-120deg);
}

.ring-1 > li:nth-of-type(3) {
    transform: rotate(240deg) translateY(-170px) rotate(-240deg);
}

/* Ring 2: 5 items */
.ring-2 {
    width: 460px;
    height: 460px;
    animation: clockwise-rotate-2 50s linear infinite;
    z-index: 1;
}

.ring-2 i {
    animation: counterclockwise-rotate-2 50s linear infinite;
}

.ring-2 > li:nth-of-type(1) {
    transform: rotate(0deg) translateY(-230px) rotate(0deg);
}

.ring-2 > li:nth-of-type(2) {
    transform: rotate(72deg) translateY(-230px) rotate(-72deg);
}

.ring-2 > li:nth-of-type(3) {
    transform: rotate(144deg) translateY(-230px) rotate(-144deg);
}

.ring-2 > li:nth-of-type(4) {
    transform: rotate(216deg) translateY(-230px) rotate(-216deg);
}

.ring-2 > li:nth-of-type(5) {
    transform: rotate(288deg) translateY(-230px) rotate(-288deg);
}

/* Center */
.orbit-center {
    z-index: 5;
    font-size: 2em;
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    box-shadow: 0 0 20px rgba(47, 111, 237, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.orbit-center-icon {
    transform: rotateZ(-360deg);
    transition: all 300ms ease-in-out;
}

.orbit-center:hover .orbit-center-icon {
    transform: rotateZ(0deg);
}

/* Hide rings when hovering center */
.orbit-wrap > li.orbit-center:hover ~ li ul {
    width: 0 !important;
    height: 0 !important;
    border-width: 0;
}

.orbit-wrap > li.orbit-center:hover ~ li li {
    transform: translate(0, 0) !important;
    opacity: 0;
}

/* Animations */
@keyframes clockwise-rotate-0 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes clockwise-rotate-1 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes counterclockwise-rotate-1 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes clockwise-rotate-2 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes counterclockwise-rotate-2 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 20px;
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    text-align: justify;  
    text-justify: auto;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-color);
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 26px rgba(47, 111, 237, 0.35);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.stat p {
    font-size: 1rem;
    text-align: center;
    color: #ffffff;
    opacity: 0.95;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 80px 20px;
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-6px) rotate(-0.35deg);
    box-shadow: 0 16px 32px rgba(47, 111, 237, 0.2);
    border-color: rgba(47, 111, 237, 0.25);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.skill-card p {
    color: var(--text-light);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 80px 20px;
    background: var(--bg-white);
}

.projects-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px) rotate(0.25deg);
    box-shadow: 0 18px 36px rgba(47, 111, 237, 0.22);
    border-color: rgba(47, 111, 237, 0.28);
}

.stat::before,
.project-card::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -130%;
    width: 60%;
    height: 300%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(22deg);
    pointer-events: none;
}

.stat:hover::before,
.project-card:hover::before {
    animation: shine-sweep 0.5s ease-out forwards;
}

@keyframes shine-sweep {
    from {
        left: -130%;
    }
    to {
        left: 130%;
    }
}

.project-image {
    height: 200px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: default;
}

.tag:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
}

/* ===== SIDEBAR / HIGHLIGHTS ===== */
.contact-highlights {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-highlights:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(47, 111, 237, 0.18);
}

.contact-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.current-focus {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.current-focus li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.current-focus li:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 18px rgba(47, 111, 237, 0.12);
}

.focus-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.current-focus strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.current-focus p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.future-goals {
    padding: 1.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.future-goals:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(47, 111, 237, 0.28);
}

.future-goals strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    padding: 80px 20px;
    background: var(--bg-white);
}

.certifications-group {
    margin-bottom: 2rem;
}

.cert-provider {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-provider i {
    font-size: 1.6rem;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    text-align: center;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(47, 111, 237, 0.2);
    border-color: rgba(47, 111, 237, 0.25);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.cert-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cert-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cert-subtitle-span {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.certs-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
}

.learning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.learning-list li {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 2;
    padding-left: 1.5rem;
    position: relative;
}

.learning-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cisco-learning {
    grid-column: 1 / -1;
}

.cert-card.in-progress:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(47, 111, 237, 0.15);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 20px;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-text {
    text-align: justify;  
    text-justify: auto;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: 0 14px 25px rgba(47, 111, 237, 0.18);
    border-color: rgba(47, 111, 237, 0.26);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-method h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 20px;
}

.footer p {
    opacity: 0.85;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .certs-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.5rem 0;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats,
    .skills-grid,
    .projects-grid,
    .certs-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
