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

body {
    font-family: 'Inter', sans-serif;
    background: #0B0F1C;
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B0F1C;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.preloader-logo {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #2F80ED, #A259FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Glassmorphic effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Gradient backgrounds */
/* .gradient-bg {
    background: linear-gradient(135deg, #2F80ED 0%, #A259FF 100%);
} */

/* Hero animations */
.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-visual {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile-specific hero section adjustments */
@media (max-width: 767px) {
    /* Force page to start from top on mobile */
    html, body {
        scroll-behavior: auto !important;
        scroll-padding-top: 0 !important;
        scroll-margin-top: 0 !important;
    }
    
    /* Ensure hero section starts from top */
    #home {
        scroll-margin-top: 0 !important;
        padding-top: 7rem !important;
        margin-top: 0 !important;
    }
    
    /* Prevent any unwanted scroll behavior */
    .hero-visual {
        margin-top: 0 !important;
        transform: none !important;
    }
    
    /* Disable any parallax effects on mobile */
    .floating {
        transform: none !important;
    }
    
    /* Ensure content starts from the very top */
    .container {
        margin-top: 0 !important;
    }
    
    /* Force scroll to top on page load */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 1px;
        height: 1px;
        z-index: -1;
    }
}

/* Button effects */
.btn-primary {
    background: linear-gradient(45deg, #2F80ED, #A259FF);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.4);
}

.btn-secondary {
    border: 2px solid #2F80ED;
    color: #2F80ED;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2F80ED;
    color: white;
    transform: translateY(-2px);
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Industry cards */
.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.2), rgba(162, 89, 255, 0.2));
}

/* Portfolio grid */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(47, 128, 237, 0.9), rgba(162, 89, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Timeline */
.timeline-item {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2F80ED, #A259FF);
    transform: translateX(-50%);
}

/* Tech stack marquee */
.marquee {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Testimonial cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Team cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Contact form */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

/* Floating elements */
.floating-airplane, .floating-about{
    animation: floating 3s ease-in-out infinite;
} 

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive adjustments for PDF */
@media print {
    .preloader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .glass {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0F1C;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #2F80ED, #A259FF);
    border-radius: 4px;
}

/* Light mode overrides */
body.light-mode {
    background: #f7f8fa;
    color: #222;
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

body.light-mode .gradient-bg {
    background: linear-gradient(135deg, #2F80ED 0%, #A259FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode nav {
    background: rgba(255, 255, 255, 0.95) !important;
}

body.light-mode .form-input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #222;
}

body.light-mode .form-input:focus {
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.08);
}

body.light-mode .portfolio-overlay {
    background: linear-gradient(45deg, rgba(47, 128, 237, 0.8), rgba(162, 89, 255, 0.8));
}

body.light-mode .testimonial-card,
body.light-mode .team-card,
body.light-mode .service-card,
body.light-mode .industry-card {
    background: rgba(255, 255, 255, 0.9);
    color: #222;
}

body.light-mode .timeline-line {
    background: linear-gradient(to bottom, #2F80ED, #A259FF);
}

body.light-mode .preloader {
    background: #f7f8fa;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #f7f8fa;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #2F80ED, #A259FF);
}

body.light-mode .btn-primary {
    color: white;
}

body.light-mode .btn-secondary {
    border: 2px solid #2F80ED;
    color: #2F80ED;
}

body.light-mode .btn-secondary:hover {
    background: #2F80ED;
    color: white;
}

body.light-mode .text-gray-300,
body.light-mode .text-gray-400,
body.light-mode .text-gray-500 {
    color: #444 !important;
}

body.light-mode footer {
    background: #fff;
    color: #222;
}

body.light-mode .glass.rounded-full {
    background: rgba(255, 255, 255, 0.7);
}

body.light-mode .fa-sun {
    color: #fbbf24 !important;
}

body.light-mode .fa-moon {
    color: #6366f1 !important;
}
body.light-mode .logo{
    border: none;
    background: none;
}
body .logo{
    border-color:  #0B0F1C;
    background: #fff;
    border-radius:50%;
}
/* Achievement badge slow bounce animations */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s infinite;
}

@keyframes bounce-slow2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.animate-bounce-slow2 {
    animation: bounce-slow2 2.8s infinite;
}

@keyframes bounce-slow3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-bounce-slow3 {
    animation: bounce-slow3 3.2s infinite;
}

/* Team card slow spin animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Animated progress bars for About section */
.progress-bar-innovation {
    width: 0;
    animation: progress-innovation 2s forwards;
}

@keyframes progress-innovation {
    to {
        width: 95%;
    }
}

.progress-bar-reliability {
    width: 0;
    animation: progress-reliability 2s 0.3s forwards;
}

@keyframes progress-reliability {
    to {
        width: 98%;
    }
}

.progress-bar-agility {
    width: 0;
    animation: progress-agility 2s 0.6s forwards;
}

@keyframes progress-agility {
    to {
        width: 90%;
    }
}
/*Animations*/
@keyframes bar1 {

    0%,
    100% {
        height: 60%
    }

    50% {
        height: 80%
    }
}

@keyframes bar2 {

    0%,
    100% {
        height: 80%
    }

    50% {
        height: 40%
    }
}

@keyframes bar3 {

    0%,
    100% {
        height: 40%
    }

    50% {
        height: 70%
    }
}

@keyframes bar4 {

    0%,
    100% {
        height: 70%
    }

    50% {
        height: 60%
    }
}

.animate-bar1 {
    animation: bar1 2s infinite;
}

.animate-bar2 {
    animation: bar2 2s infinite;
}

.animate-bar3 {
    animation: bar3 2s infinite;
}

.animate-bar4 {
    animation: bar4 2s infinite;
}

.web-terminal-line {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.web-terminal-prompt {
    color: #4ade80;
    margin-right: 0.3em;
}

.web-terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

.web-terminal-output {
    color: #a3e635;
    font-size: 0.95rem;
    margin-left: 1.5em;
    white-space: pre-wrap;
}

@keyframes glow {
    0%,100% { text-shadow: 0 0 8px #fff, 0 0 16px #a78bfa; }
    50% { text-shadow: 0 0 24px #fff, 0 0 32px #f472b6; }
}
.animate-glow { animation: glow 2s infinite alternate; }


.owl-nav button.owl-prev, .owl-nav button.owl-next {
    background: #232946;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border: none;
    margin: 0 8px;
  }
  .owl-nav button.owl-prev:hover, .owl-nav button.owl-next:hover {
    background: #4f46e5;
    color: #fff;
    transform: scale(1.1);
  }
  .owl-nav {
    text-align: center;
    margin-top: 24px;
  }
  .owl-dots {
    text-align: center;
    margin-top: 18px;
  }
  .owl-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 6px;
    background: #c7d0e0;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid #4f46e5;
  }
  .owl-dot.active {
    background: #4f46e5;
    transform: scale(1.2);
  }





  /* Tailwind already gives you gradient utils.
   If you want a nicer "wipe-out" illusion, hide overflow: */
#typed-word {
    @apply relative z-10;       /* keeps gradient text above */
    overflow: hidden;           /* prevents text wrap jitter */
  }
  

  @media(max-width:767px){.timeline-line{display:none!important;}}

  .glassmorphic {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.1) 0%, rgba(162, 89, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(47, 128, 237, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #2F80ED 0%, #A259FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 8px;
    background: linear-gradient(90deg, #2F80ED 0%, #A259FF 100%);
    border-radius: 10px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(47, 128, 237, 0.1) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 128, 237, 0.5);
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(47, 128, 237, 0.1);
    transform: translateX(5px);
}

.tech-tag {
    background: rgba(47, 128, 237, 0.2);
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(47, 128, 237, 0.3);
    transform: scale(1.05);
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2F80ED 0%, #A259FF 100%);
    border-radius: 2px;
}

@media print {
    body {
        background: #0B0F1C;
        color: #ffffff;
    }

    .glassmorphic,
    .profile-card,
    .project-card,
    .contact-item {
        border: 1px solid #333;
        background: rgba(255, 255, 255, 0.05);
    }
}


/*Work Detsils */
.light-mode .deliverable-item {
    background: rgb(255 255 255);
}

.deliverable-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #2F80ED;
    transition: all 0.3s ease;
}

.deliverable-item:hover {
    background: rgba(47, 128, 237, 0.1);
    transform: translateX(10px);
}