* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #100720 0%, #1a0a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-container {
    text-align: center;
    position: relative;
}

.loading-logo {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.loading-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffb22c;
    text-shadow: 0 0 20px rgba(255, 178, 44, 0.8),
        0 0 40px rgba(255, 178, 44, 0.6), 0 0 80px rgba(255, 178, 44, 0.4);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.spinner-ring {
    position: relative;
    width: 80px;
    height: 80px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.spinner-segment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #ffb22c;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-segment:nth-child(2) {
    animation-delay: 0.2s;
    border-top-color: rgba(255, 178, 44, 0.8);
}

.spinner-segment:nth-child(3) {
    animation-delay: 0.4s;
    border-top-color: rgba(255, 178, 44, 0.6);
}

.spinner-segment:nth-child(4) {
    animation-delay: 0.6s;
    border-top-color: rgba(255, 178, 44, 0.4);
}

.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffb22c, #ff8c00, #ffb22c);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progressFill 2s ease-out, gradientSlide 1.5s ease-in-out infinite;
}

.loading-text {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.loading-dots {
    color: white;
    font-size: 1rem;
    position: relative;
}

.loading-dots::after {
    content: "";
    animation: dots 1.5s infinite;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffb22c;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 178, 44, 0.8);
    animation: floatParticle 3s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 80%;
    left: 80%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 30%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

.particle:nth-child(6) {
    top: 10%;
    left: 90%;
    animation-delay: 2.5s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 178, 44, 0.8),
            0 0 40px rgba(255, 178, 44, 0.6), 0 0 80px rgba(255, 178, 44, 0.4);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 178, 44, 1),
            0 0 60px rgba(255, 178, 44, 0.8), 0 0 120px rgba(255, 178, 44, 0.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes dots {
    0%,
    20% {
        content: "";
    }
    40% {
        content: ".";
    }
    60% {
        content: "..";
    }
    80%,
    100% {
        content: "...";
    }
}

@keyframes floatParticle {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Animated Title Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.animated-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #ffb22c;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInTitle 1s ease-out forwards;
    text-shadow: 0 0 20px rgba(255, 178, 44, 0.6),
        0 0 40px rgba(255, 178, 44, 0.4);
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
    color: #ff8c00;
}

.title-word:nth-child(3) {
    animation-delay: 0.6s;
}

.title-underline {
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        #ffb22c,
        #ff8c00,
        #ffb22c,
        transparent
    );
    width: 0%;
    margin: 0 auto;
    border-radius: 2px;
    animation: expandUnderline 1s ease-out 0.8s forwards,
        glowUnderline 2s ease-in-out 1.8s infinite alternate;
}

@keyframes slideInTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandUnderline {
    to {
        width: 200px;
    }
}

@keyframes glowUnderline {
    0% {
        box-shadow: 0 0 10px rgba(255, 178, 44, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 178, 44, 0.9),
            0 0 30px rgba(255, 178, 44, 0.6);
    }
}

@keyframes floatUpDown {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

body {
    background-color: #100720;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
.logo {
    font-weight: bold;
    color: white;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.desktop-nav {
    display: flex;
    justify-content: end;
    gap: 20px;
    color: white;
    list-style: none;
}

ul a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

ul a:hover {
    background-color: rgba(255, 178, 44, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffb22c;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(255, 178, 44, 0.5);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 8%;
    background: rgba(16, 7, 32, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 178, 44, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 178, 44, 0.1);
    min-width: 200px;
    z-index: 999;
}

.mobile-nav-list {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.mobile-nav-list a:hover {
    background-color: rgba(255, 178, 44, 0.15);
    color: #ffb22c;
    padding-left: 25px;
}
.color {
    color: #ffb22c;
    text-shadow: 0 0 0px rgba(255, 178, 44, 0.8),
        0 0 2px rgba(255, 178, 44, 0.6), 0 0 5px rgba(255, 178, 44, 0.4);
    filter: drop-shadow(0 0 5px rgba(255, 178, 44, 0.7));
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}
.content {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    max-width: 100%;
    padding: 60px 8% 30px 8%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}
.presentation {
    color: white;
    font-size: clamp(1.8rem, 4vw, 3rem);
    width: 100%;
    max-width: 600px;
    line-height: 1.2;
}
.location {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    margin-top: 2%;
}
.location-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
i {
    color: #ffb22c;
    text-shadow: 0 0 0px rgba(255, 178, 44, 0.8),
        0 0 2px rgba(255, 178, 44, 0.6), 0 0 5px rgba(255, 178, 44, 0.4);
    filter: drop-shadow(0 0 5px rgba(255, 178, 44, 0.7));
    min-width: 20px;
    text-align: center;
}
.location span {
    color: white;
    letter-spacing: 1px;
    text-shadow: none;
    filter: none;
}
.about-me {
    flex: 1 1 320px;
    max-width: 100%;
    width: 55%;
    color: white;
    margin-top: 2%;
}
.about-me p {
    line-height: 1.4;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 3%;
    flex-wrap: wrap;
    max-width: 100%;
}
.buttons button {
    border: 1px solid #ffb22c;
    padding: 5px 15px;
    background-color: #ffb22c;
    transition: all 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(255, 178, 44, 0.7);
    font-weight: 500;
}
.buttons button:hover {
    background-color: transparent;
    color: #ffb22c;
    cursor: pointer;
}
.skills {
    display: flex;
    justify-content: start;
    gap: 15px;
    flex-direction: row;
    width: 100%;
    margin-top: -5%;
    flex-wrap: wrap;
    font-size: 0.8rem;
}
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 178, 44, 0.1);
    min-width: 80px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.skill-item:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 178, 44, 0.2);
}
.skills i {
    font-size: 1.5rem;
}
.skills span {
    color: white;
    text-shadow: none;
    font-size: 0.7rem;
    text-align: center;
}
.right-side {
    width: 100%;
    max-width: 100%;
    margin-top: 2%;
}
.right-side h1 {
    color: white;
    font-size: 2rem;
}
.services {
    display: flex;
    flex-direction: column;
    margin-top: 4%;
    gap: 10px;
}
.service {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 5%;
}
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: transform 0.2s ease;
}
.service-item:hover {
    transform: translateX(5px);
}
.service span {
    color: white;
    text-shadow: none;
}
.cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.experience-card {
    background: rgba(255, 178, 44, 0.08);
    width: calc(33.333% - 20px);
    height: 280px;
    padding: 20px;
    border: 1px solid #ff8c00;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* Floating animation for experience cards */
.floating-card {
    animation: floatUpDown 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

.floating-card:nth-child(4) {
    animation-delay: 1.5s;
}

.floating-card:nth-child(5) {
    animation-delay: 2s;
}

.floating-card:nth-child(6) {
    animation-delay: 2.5s;
}

.floating-card:hover {
    transform: translateY(-8px);
    animation-play-state: paused;
}

/* Contact specific floating animation overrides */
.contact-item.floating-card:hover {
    transform: translateX(10px) translateY(-8px);
    animation-play-state: paused;
    border-color: #ffb22c;
    box-shadow: 0 8px 30px rgba(255, 178, 44, 0.3);
}

/* Social media specific floating animation overrides */
.social-link.floating-card:hover {
    color: #ffb22c;
    transform: translateY(-10px);
    border-color: rgba(255, 178, 44, 0.3);
    background: rgba(255, 178, 44, 0.05);
    animation-play-state: paused;
}
.info {
    color: white;
    gap: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.info h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.info p {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex: 1;
}
.icon {
    font-size: 1.5rem;
}
.info h4 {
    font-size: 1.2rem;
    background-color: #ffb22c;
    max-width: 100%;
    width: 50%;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
}
.skills-section,
.services-section {
    margin-top: -27px;
}
#services {
    margin-top: 1%;
}

.section-title-static {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: left;
}

.skills-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.skill-item-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(255, 178, 44, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.skill-item-small:hover {
    background: rgba(255, 178, 44, 0.15);
    transform: translateY(-1px);
}

.service-item-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 178, 44, 0.08);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.service-item-small:hover {
    background: rgba(255, 178, 44, 0.15);
    transform: translateX(3px);
}

.skill-item-small i {
    font-size: 1.1rem;
    color: #ffb22c;
}

.service-item-small i {
    font-size: 1rem;
    min-width: 16px;
    color: #ffb22c;
}

.skill-item-small span,
.service-item-small span {
    color: white;
    text-shadow: none;
    font-size: 0.7rem;
    text-align: center;
}

.stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    transform: translateZ(0);
}
.star.xs {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}
.star.sm {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}
.star.md {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.9);
        filter: blur(0px);
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
        filter: blur(1px);
    }
}

@keyframes floatX {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
    100% {
        transform: translateX(0);
    }
}

.star {
    animation-name: twinkle, floatX;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

/* utility helper classes for duration/delay */
.d1 {
    animation-duration: 2.6s, 6s;
}
.d2 {
    animation-duration: 3.4s, 8s;
}
.d3 {
    animation-duration: 4.2s, 7s;
}
.d4 {
    animation-duration: 2.2s, 5.5s;
}
.dl1 {
    animation-delay: 0s, 0s;
}
.dl2 {
    animation-delay: 0.7s, 0.2s;
}
.dl3 {
    animation-delay: 1.3s, 0.5s;
}
.dl4 {
    animation-delay: 2.1s, 0.9s;
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .navbar {
        padding: 10px 3%;
    }

    .content {
        padding: 30px 3% 15px 3%;
        gap: 30px;
        min-height: auto;
    }

    .presentation {
        font-size: clamp(1.3rem, 8vw, 2rem);
    }

    .color {
        font-size: clamp(1.6rem, 9vw, 2.4rem);
    }

    .location {
        gap: 12px;
    }

    .location span {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .buttons button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .skills span {
        font-size: 0.7rem;
        padding: 3px;
    }

    .section-title-static {
        font-size: 1rem;
    }

    .skills-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        gap: 4px;
    }

    .services-grid-compact {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .skill-item-small span,
    .service-item-small span {
        font-size: 0.65rem;
    }

    .skill-item-small i {
        font-size: 1rem;
    }

    .service-item-small i {
        font-size: 0.9rem;
    }

    .skill-item-small {
        padding: 4px 2px;
        gap: 3px;
    }

    .service-item-small {
        padding: 3px 5px;
        gap: 6px;
        font-size: 0.75rem;
    }

    .star.xs {
        width: 1.5px;
        height: 1.5px;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
    }

    .star.sm {
        width: 2px;
        height: 2px;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }

    .star.md {
        width: 2.5px;
        height: 2.5px;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
    }

    .info h4 {
        max-width: 100%;
        width: 100%;
    }

    /* Ensure cards work well on very small screens */
    .cards {
        gap: 15px;
    }

    .experience-card {
        width: 100%;
        height: 260px;
        padding: 15px;
        min-width: unset;
    }
}

/* Larger tablets and smaller desktops - 3 cards per row */
@media (min-width: 1025px) and (max-width: 1200px) {
    .experience-card {
        width: calc(33.333% - 20px);
        height: 280px;
        min-width: 280px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .info h4 {
        width: 100%;
    }

    .experience-card {
        width: calc(50% - 10px);
        height: 280px;
        min-width: 300px;
    }
}

/* Medium tablets - better 2 card layout */
@media (min-width: 768px) and (max-width: 1024px) {
    .cards {
        gap: 25px;
    }

    .experience-card {
        width: calc(50% - 12.5px);
        height: 280px;
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .navbar {
        padding: 15px 5%;
        align-items: center;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .content {
        flex-direction: column;
        padding: 50px 5% 20px 5%;
        gap: 40px;
        min-height: auto;
    }

    .left-side {
        width: 100%;
    }

    .presentation {
        text-align: center;
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .color {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .location {
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .location i {
        justify-content: center;
    }
    .info h4 {
        max-width: 100%;
        width: 100%;
    }

    .about-me {
        width: 100%;
        text-align: center;
    }

    .about-me-section {
        padding: 40px 5% 20px 5%;
    }

    .cards-about-me {
        width: 100%;
    }

    .experience-card {
        width: 100%;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        text-align: center;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
        border-radius: 50%;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .card-content {
        text-align: center;
        margin-bottom: 25px;
    }

    .card-content h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .card-content h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .card-content .period {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .card-content .description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .card-footer {
        justify-content: center;
    }

    .status {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .navigation-dots {
        gap: 12px;
        margin-top: 25px;
    }

    .nav-dot {
        width: 14px;
        height: 14px;
    }

    .about-me-section {
        padding: 40px 0;
        min-height: auto;
    }

    .experience-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .experience-card {
        flex-direction: column;
    }

    .card-content h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .card-content h4 {
        font-size: 1rem;
        text-align: center;
    }

    .card-content .period,
    .card-content .description {
        text-align: center;
    }

    /* Floating animation for experience cards */
    .floating-card {
        animation: floatUpDown 3s ease-in-out infinite;
    }

    .floating-card:nth-child(1) {
        animation-delay: 0s;
    }

    .floating-card:nth-child(2) {
        animation-delay: 0.5s;
    }

    .floating-card:nth-child(3) {
        animation-delay: 1s;
    }

    .floating-card:nth-child(4) {
        animation-delay: 1.5s;
    }

    .floating-card:nth-child(5) {
        animation-delay: 2s;
    }

    .floating-card:nth-child(6) {
        animation-delay: 2.5s;
    }

    .floating-card:hover {
        transform: translateY(-5px);
        animation-play-state: paused;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .buttons button {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .right-side {
        width: 100%;
    }

    .section-title-static {
        text-align: center;
        font-size: 1.2rem;
    }

    .skills-section,
    .services-section {
        margin-top: 12px;
    }

    .skills-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 6px;
    }

    .services-grid-compact {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .skill-item-small {
        padding: 5px 3px;
        min-width: 60px;
    }

    .service-item-small {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .navbar {
        padding: 20px 10%;
    }
    .content {
        padding: 100px 10% 40px 10%;
    }

    /* For very large screens, maintain 3 cards per row with good spacing */
    .experience-card {
        width: calc(33.333% - 20px);
        height: 280px;
        min-width: 300px;
        max-width: 400px;
    }
}

/* ===============================================
   PROJECTS SECTION STYLES
   =============================================== */

.projects-section {
    padding: 80px 8% 100px 8%;
    margin-top: 60px; /* Added space between experience and projects section */
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb22c, transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(255, 178, 44, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 178, 44, 0.2);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
}

/* Floating animation for project cards */
.project-card.floating-card {
    animation: floatUpDown 3s ease-in-out infinite;
}

.project-card.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.project-card.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.project-card.floating-card:nth-child(3) {
    animation-delay: 1s;
}

.project-card.floating-card:nth-child(4) {
    animation-delay: 1.5s;
}

.project-card.floating-card:nth-child(5) {
    animation-delay: 2s;
}

.project-card.floating-card:nth-child(6) {
    animation-delay: 2.5s;
}

.project-card.floating-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    animation-play-state: paused;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    border-color: #ffb22c;
    box-shadow: 0 20px 40px rgba(255, 178, 44, 0.3),
        0 0 50px rgba(255, 178, 44, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #100720, #1a0a2e);
    background-image: radial-gradient(
            circle at 25% 25%,
            rgba(255, 178, 44, 0.05) 0%,
            transparent 25%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(255, 140, 0, 0.05) 0%,
            transparent 25%
        );
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: calc(100% - 20px);
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    background: transparent;
    margin-top: 20px;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 178, 44, 0.4),
        rgba(255, 140, 0, 0.5),
        rgba(16, 7, 32, 0.3)
    );
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.95;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb22c;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:nth-child(1) {
    transition-delay: 0.1s;
}

.project-link:nth-child(2) {
    transition-delay: 0.2s;
}

.project-link:hover {
    background: #100720;
    color: white;
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: #ffb22c;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: linear-gradient(135deg, #ffb22c, #ff8c00);
    color: #100720;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
}

/* Project Loading States */
.loading-placeholder,
.error-placeholder,
.empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(
        135deg,
        rgba(255, 178, 44, 0.1),
        rgba(255, 140, 0, 0.1)
    );
    color: #ffb22c;
    font-size: 2rem;
}

.error-placeholder {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.1),
        rgba(220, 38, 38, 0.1)
    );
    color: #ef4444;
}

.empty-placeholder {
    background: linear-gradient(
        135deg,
        rgba(156, 163, 175, 0.1),
        rgba(107, 114, 128, 0.1)
    );
    color: #9ca3af;
}

.project-card.error-state {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.projects-cta {
    text-align: center;
    margin-top: 60px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #ffb22c, #ff8c00);
    color: #100720;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.view-all-btn:hover {
    background: transparent;
    color: #ffb22c;
    border-color: #ffb22c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 178, 44, 0.3);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Projects */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 5% 80px 5%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card.floating-card:hover {
        transform: translateY(-8px);
        animation-play-state: paused;
    }

    .project-card:hover {
        transform: translateY(-5px);
    }

    .project-content {
        padding: 25px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .view-all-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 50px 3% 70px 3%;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .tech-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* ===============================================
   CONTACT SECTION STYLES
   =============================================== */

.contact-section {
    padding: 80px 8% 60px 8%;
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb22c, transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-intro h3 {
    color: #ffb22c;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-intro p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 178, 44, 0.05);
    border: 1px solid rgba(255, 178, 44, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #ffb22c;
    transform: translateX(10px) translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 178, 44, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffb22c, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #100720;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 178, 44, 0.4),
        0 0 40px rgba(255, 178, 44, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.contact-item:hover .contact-icon::before {
    opacity: 1;
    animation: shimmer 0.6s ease-in-out;
}

.contact-icon i {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    color: white;
}

/* Specific contact icon styling */
.fas.fa-envelope::before {
    content: "\f0e0";
}

.fas.fa-phone::before {
    content: "\f095";
}

.fas.fa-map-marker-alt::before {
    content: "\f3c5";
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.contact-details h4 {
    color: #ffb22c;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details a,
.contact-details span {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ffb22c;
}

.contact-form-container {
    background: rgba(255, 178, 44, 0.05);
    border: 1px solid rgba(255, 178, 44, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 178, 44, 0.3);
    border-radius: 12px;
    padding: 15px 45px 15px 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb22c;
    box-shadow: 0 0 20px rgba(255, 178, 44, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffb22c;
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        135deg,
        rgba(255, 178, 44, 0.2),
        rgba(255, 140, 0, 0.2)
    );
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 178, 44, 0.3);
    box-shadow: 0 0 10px rgba(255, 178, 44, 0.2);
    transition: all 0.3s ease;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

/* Specific form icon styling */
.form-group .fas.fa-user::before {
    content: "\f007";
}

.form-group .fas.fa-envelope::before {
    content: "\f0e0";
}

.form-group .fas.fa-tag::before {
    content: "\f02b";
}

.form-group .fas.fa-comment::before {
    content: "\f075";
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    background: linear-gradient(135deg, #ffb22c, #ff8c00);
    color: #100720;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 178, 44, 0.4);
    border-color: #ffb22c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group:has(textarea) i {
    top: 25px;
    transform: translateY(0);
}

.form-group:has(textarea) input:focus + i,
.form-group:has(textarea) textarea:focus + i {
    transform: translateY(0) scale(1.1);
}

.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #ffb22c, #ff8c00);
    color: #100720;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.send-btn:hover {
    background: transparent;
    color: #ffb22c;
    border-color: #ffb22c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 178, 44, 0.3);
}

.send-btn i {
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: inherit;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

/* Specific send button icon styling */
.send-btn .fas.fa-paper-plane::before {
    content: "\f1d8";
}

.send-btn:hover i {
    transform: translateX(5px) scale(1.1);
    text-shadow: 0 0 10px rgba(255, 178, 44, 0.5);
}

.social-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 178, 44, 0.2);
}

.social-section h3 {
    color: #ffb22c;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid transparent;
}

.social-link:hover {
    color: #ffb22c;
    transform: translateY(-5px);
    border-color: rgba(255, 178, 44, 0.3);
    background: rgba(255, 178, 44, 0.05);
}

.social-link i {
    width: 60px;
    height: 60px;
    background: rgba(255, 178, 44, 0.15);
    border: 2px solid rgba(255, 178, 44, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 178, 44, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.social-link i::before {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
    position: relative;
    z-index: 3;
}

.social-link i::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 178, 44, 0.1),
        rgba(255, 140, 0, 0.1)
    );
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.social-link:hover i::after {
    opacity: 1;
}

/* Specific icon styling for better visibility */
.fab.fa-linkedin::before {
    content: "\f08c";
}

.fab.fa-instagram::before {
    content: "\f16d";
}

.fab.fa-facebook::before {
    content: "\f09a";
}

.fab.fa-github::before {
    content: "\f09b";
}

.fab.fa-twitter::before {
    content: "\f099";
}

.social-link:hover i {
    background: linear-gradient(135deg, #ffb22c, #ff8c00);
    color: #100720;
    border-color: #ffb22c;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 178, 44, 0.5),
        0 0 50px rgba(255, 178, 44, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-link span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 8%;
    border-top: 1px solid rgba(255, 178, 44, 0.2);
    text-align: center;
}

.footer-content {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-content p {
    margin: 5px 0;
}

.heart {
    color: #ff4757;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design for Contact Section */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .social-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 5% 50px 5%;
    }

    .contact-intro h3 {
        font-size: 1.6rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-methods {
        gap: 20px;
    }

    .contact-item {
        padding: 15px;
    }

    .social-section h3 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 50px 3% 40px 3%;
    }

    .contact-form-container {
        padding: 25px 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 40px 12px 12px;
        font-size: 0.9rem;
    }

    .send-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-link {
        padding: 12px;
    }

    .social-link i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
