@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #34495e;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
}

body.dark-mode {
    background: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
    color: #E0E0E0;
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
}

/* Glassmorphism Styles */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body.dark-mode .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}


a {
    text-decoration: none;
    color: #0A2E5D;
}

ul {
    list-style: none;
    padding: 0;
}

section {
    padding: 80px 20px;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #0A2E5D;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 3rem;
    margin: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 8px;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    color: #FFA500;
    border-bottom: 3px solid #FFA500;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    color: #0A2E5D;
}

body.dark-mode .hero {
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-in-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-in-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button {
    background-color: #FFA500;
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    animation: fadeInUp 1s ease-in-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button:hover {
    background-color: #cc8400;
    transform: translateY(-5px);
}

/* About Section */
#about p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
    font-size: 1.1rem;
}

#why-choose-us, #process {
    background-color: transparent;
}

.section-intro{
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.why-choose-us-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-box{
    padding: 40px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover{
    transform: translateY(-10px);
}

.feature-box i{
    font-size: 3rem;
    color: #FFA500;
    margin-bottom: 20px;
}

.feature-box h3{
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0A2E5D;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.process-step {
    padding: 40px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.process-step:not(:last-child)::after {
    /* content: '';
    position: absolute;
    top: 60px;
    right: -45px;
    width: 60px;
    height: 2px;
    background-color: #FFA500; */
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-step-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05);
}

body.dark-mode .process-step-number {
    color: rgba(255,255,255,0.05);
}

.process-step i {
    font-size: 3rem;
    color: #FFA500;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0A2E5D;
}


/* Services Section */
#services .service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.service-item {
    padding: 40px 30px;
    width: 310px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item i {
    font-size: 3rem;
    color: #FFA500;
    margin-bottom: 25px;
}

.service-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0A2E5D;
}

#tech-stack{
    background-color: transparent;
}

.tech-stack-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tech-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.tech-item:hover{
    transform: translateY(-5px);
}

.tech-item i{
    font-size: 4rem;
}

.tech-item p{
    margin-top: 10px;
    font-weight: 600;
}


/* Packages Section */
#packages .package-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.package {
    padding: 40px;
    width: 330px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 580px;
}

.package.featured {
    border: 2px solid #FFA500;
}

.popular-banner {
    position: absolute;
    top: -15px;
    background-color: #FFA500;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.package:not(.featured):hover {
    transform: translateY(-10px);
}

.package h3 {
    font-size: 1.8rem;
    color: #0A2E5D;
}

.package .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFA500;
    margin: 15px 0;
}

.package ul {
    margin: 25px 0;
    text-align: left;
    width: 100%;
}

.package ul li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.package ul li i {
    color: #FFA500;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Contact Section */
#contact {
    background: transparent;
}

#contact .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form {
    padding: 40px;
}

.contact-details {
    padding: 40px;
}

.contact-details h3 {
    font-size: 2.2rem;
    color: #0A2E5D;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(255,255,255,0.5);
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 18px 40px;
    border-radius: 50px;
    border: none;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    color: #FFA500;
    font-size: 1.3rem;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.social-media a {
    color: #0A2E5D;
    margin-left: 25px;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

body.dark-mode .social-media a {
    color: #fff;
}

.social-media a:hover {
    color: #FFA500;
    transform: translateY(-5px);
}


/* Animations */
@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Responsive Design */
@media (max-width: 992px) {
    .service-container, .package-container, .tech-stack-container, .why-choose-us-container, .process-container {
        flex-direction: column;
        align-items: center;
    }
    #contact .contact-container {
        grid-template-columns: 1fr;
    }
    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
    
    header {
        margin: 0;
        border-radius: 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 85px; /* Adjusted to new header height */
        left: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    
    body.dark-mode nav ul {
        background: var(--card-background-dark);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 15px 25px;
    }

    .menu-icon {
        display: block;
        font-size: 1.8rem; /* Larger icon for better tap target */
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-media {
        margin-top: 15px;
    }
}
.menu-icon {
    display: none;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    margin-left: 20px;
}

#dark-mode-checkbox {
    display: none;
}

#dark-mode-checkbox + label {
    display: block;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

#dark-mode-checkbox + label::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.3s;
}

#dark-mode-checkbox:checked + label {
    background-color: #0A2E5D;
}

#dark-mode-checkbox:checked + label::before {
    transform: translateX(22px);
}

/* Dark Mode Colors */
:root {
    --background-light: #F8F9FA;
    --text-light: #34495e;
    --card-background-light: #fff;
    --header-background-light: #fff;

    --background-dark: #0A192F;
    --text-dark: #E0E0E0;
    --card-background-dark: #172A45;
    --header-background-dark: #0A192F;
}

body.dark-mode h2,
body.dark-mode .service-item h3,
body.dark-mode .package h3,
body.dark-mode .contact-details h3,
body.dark-mode .logo a,
body.dark-mode nav ul li a,
body.dark-mode .menu-icon i, 
body.dark-mode .feature-box h3, 
body.dark-mode .tech-item p,
body.dark-mode .process-step h3 {
    color: #fff;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: var(--card-background-dark);
    color: var(--text-dark);
    border-color: #333;
}

body.dark-mode .package.featured {
    border-color: #FFA500;
}

@keyframes animated-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.1);
    animation: float 20s infinite;
}

.floating-shapes::before {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
}

.floating-shapes::after {
    width: 200px;
    height: 200px;
    top: 70%;
    left: 80%;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

.footer-links {
    margin: 0 20px;
}

.footer-links a {
    margin: 0 10px;
    color: #0A2E5D;
    font-weight: 600;
}

body.dark-mode .footer-links a {
    color: #fff;
}

.just4fun-link {
    background-color: #ff6f61; /* Playful red */
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    border-bottom: none !important; /* Remove default underline */
    box-shadow: 0 4px 8px rgba(255, 111, 97, 0.3);
}

.just4fun-link:hover {
    background-color: #e04e3e; /* Darker red on hover */
    transform: scale(1.05) rotate(2deg); /* Slight scale and rotate for playfulness */
    box-shadow: 0 6px 12px rgba(255, 111, 97, 0.4);
    color: white !important;
}