@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

/* Navigation Styles */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem 1rem;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #60a5fa;
}

/* Mobile Navigation */
/* Mobile Navigation Styles */
/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Prevent scrolling when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}

/* Section spacing */


.mobile-nav.active {
    transform: translateX(0);
    /* Show when active */
    opacity: 1;
    pointer-events: all;
}

/* Prevent scrolling when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* Ensure sections have proper spacing */
section {
    scroll-margin-top: 80px;
    padding-top: 80px;
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Mobile menu button - make sure it's visible on mobile */
@media (max-width: 768px) {
    #mobile-menu-button {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #60a5fa;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Spline Viewer Customization */
.spline-container {
    width: 100%;
    height: 500px;
    position: relative;
}

spline-viewer {
    width: 100%;
    height: 100%;
    --progress-bar-color: #3b82f6;
    --progress-bar-height: 3px;
}

.spline-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Background floating elements */
@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(5deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
}

.animate-float-1 {
    animation: float-1 8s ease-in-out infinite;
}

.animate-float-2 {
    animation: float-2 10s ease-in-out infinite;
}

/* Marquee animations */
@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-marquee-left {
    animation: marquee-left 30s linear infinite;
}

.animate-marquee-right {
    animation: marquee-right 30s linear infinite;
}

/* Hover effects */
.dev-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}


/* About */
/* Marquee animations */
@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-marquee-left {
    animation: marquee-left 40s linear infinite;
}

.animate-marquee-right {
    animation: marquee-right 40s linear infinite;
}

/* Hover effects */
.dev-icon:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.dev-icon:hover span {
    color: #93c5fd;
    transition: color 0.3s ease;
}

/* Glow effect on hover */
.dev-icon:hover {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    background: linear-gradient(to bottom right, rgba(30, 58, 138, 0.8), rgba(8, 47, 73, 0.9));
}

/* Card Hover Effects */
.dev-icon,
.project-card,
.certificate-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.dev-icon:hover {
    transform: translateY(-10px) rotateY(20deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.certificate-card:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}














/* 3D Flip Card Styles */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-preserve-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.transform-rotate-y-180 {
    transform: rotateY(180deg);
}

.flip-card {
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(10deg);
}

.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}

/* Skill Bar Animation */
.skill-bar {
    width: 0;
    transition: width 1.5s ease-out;
}

/* Particle Animation */
.particle {
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Glow Effect */
.flip-card-front:hover {
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flip-card {
        height: auto;
        min-height: 220px;
    }
}


.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    text-align: center;
    outline: 3px #007ACC solid;
    outline-offset: -3px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 400ms;
}

.button .text {

    font-weight: 700;
    font-size: 1em;
    transition: 400ms;
}

.button svg path {
    fill: #007ACC;

    transition: 400ms;
}

.button:hover {
    background-color: transparent;
}

.button:hover .text {
    color: #007ACC;
}

.button:hover svg path {
    fill: #007ACC;
}



/* Skills Animation classes */
/* Initial state for all cards */
.flip-card {
    opacity: 0;
}

/* Animation classes - only apply when both start-animation and section-active are present */
#skills.section-active .flip-card.start-animation {
    opacity: 1;
}

#skills.section-active .flip-card.start-animation.slide-in-top {
    animation: slideInTop 1.8s ease-out forwards;
}

#skills.section-active .flip-card.start-animation.slide-in-right {
    animation: slideInRight 1.8s ease-out forwards;
}

#skills.section-active .flip-card.start-animation.slide-in-bottom {
    animation: slideInBottom 1.8s ease-out forwards;
}

#skills.section-active .flip-card.start-animation.slide-in-left {
    animation: slideInLeft 1.8s ease-out forwards;
}

#skills.section-active .flip-card.start-animation.slide-in-top-right {
    animation: slideInTopRight 1.8s ease-out forwards;
}

#skills.section-active .flip-card.start-animation.slide-in-bottom-left {
    animation: slideInBottomLeft 1.8s ease-out forwards;
}

/* Keyframes (keep your existing keyframes) */
@keyframes slideInTop {
    from {
        transform: translateY(-100vh);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100vw);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        transform: translateY(100vh);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100vw);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInTopRight {
    from {
        transform: translate(50vw, -50vh);
        opacity: 0;
    }

    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes slideInBottomLeft {
    from {
        transform: translate(-50vw, 50vh);
        opacity: 0;
    }

    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* Delay classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Keep all your other animation classes the same but prefix with #skills-section.section-active */




/* Achievement of Simple fade + zoom animation */
  .fade-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
  }

  .fade-zoom.show {
    opacity: 1;
    transform: scale(1);
  }

  /* Alert  */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
  }







/* Form Inputs */
.floating-input {
    transition: all 0.3s ease;
}

.floating-input:focus~label,
.floating-input:not(:placeholder-shown)~label {
    transform: translateY(-25px) scale(0.85);
    color: #3b82f6;
}

/* Media Queries */
@media (max-width: 1024px) {
    .spline-container {
        height: 400px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    /* Spline Viewer */
    .spline-container {
        height: 300px;
    }

    /* Adjust card sizes */
    .project-card,
    .certificate-card {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    nav .logo {
        font-size: 1.25rem;
    }

    .spline-container {
        height: 250px;
    }

    /* Center align text in mobile */
    .section-title,
    .section-subtitle {
        text-align: center;
    }

    /* Adjust padding for sections */
    section {
        padding: 2rem 1rem;
    }
}