/* Cinematic Redesign */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0404;
    color: #ffffff;
    transition: 0.3s;
    overflow-x: hidden;
    position: relative;
}

/* Animated Colorful Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(241, 39, 17, 0.3), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(255, 75, 43, 0.3), transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(245, 175, 25, 0.2), transparent 50%);
    filter: blur(80px);
    animation: pulseBg 10s infinite alternate linear;
}

@keyframes pulseBg {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) translate(20px, 20px); }
    100% { transform: scale(1) translate(-20px, -20px); }
}

/* Glassmorphism Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav .logo h2 {
    background: linear-gradient(to right, #f12711, #f5af19);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 1px;
}

nav ul.links {
    display: flex;
    list-style: none;
}

nav ul.links li {
    margin: 0 20px;
}

nav ul.links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 16px;
    transition: 0.3s;
}

nav ul.links a:hover {
    color: #f5af19;
    text-shadow: 0 0 10px rgba(245, 175, 25, 0.5);
}

#dark-mode-btn {
    display: none; /* Hide dark mode button as it's permanently dark cinematic now */
}

.menu-icon {
    display: none;
    font-size: 25px;
    cursor: pointer;
    color: white;
}

/* Vibrant Buttons */
.btn-main {
    background: linear-gradient(45deg, #f12711, #ff4b2b);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(241, 39, 17, 0.4);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(241, 39, 17, 0.6);
}

/* Home Section */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 150px 50px 50px 50px;
    min-height: 100vh;
}

.home-text {
    width: 50%;
}

.home-text h1 {
    font-size: 65px;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.highlight {
    background: linear-gradient(to right, #ff4b2b, #f5af19);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 75, 43, 0.3);
}

.home-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.home-img {
    width: 45%;
    position: relative;
}

.home-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, #f12711, #f5af19);
    border-radius: 20px;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
    animation: floatImg 4s infinite alternate ease-in-out reverse;
}

.home-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: floatImg 4s infinite alternate ease-in-out;
}

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

/* Headings */
.heading {
    text-align: center;
    font-size: 45px;
    margin-bottom: 60px;
    font-weight: 800;
    color: white;
}

/* Glass Cards */
.card-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card, .project-box, .contact-form-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Services */
#services {
    padding: 100px 50px;
}

.card {
    width: 30%;
    padding: 40px 30px;
    text-align: center;
}

.card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 175, 25, 0.4);
    box-shadow: 0 15px 40px rgba(245, 175, 25, 0.2);
}

.card i {
    font-size: 50px;
    background: linear-gradient(45deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.card p {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.6;
}

/* Projects */
#projects {
    padding: 100px 50px;
}

.project-box {
    width: 30%;
    overflow: hidden;
}

.project-box:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 75, 43, 0.4);
    box-shadow: 0 15px 40px rgba(255, 75, 43, 0.2);
}

.project-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.5s ease;
}

.project-box:hover img {
    transform: scale(1.1) rotate(1deg);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.project-info p {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Stats */
#stats {
    background: linear-gradient(135deg, rgba(241, 39, 17, 0.8), rgba(255, 75, 43, 0.8));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    padding: 60px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box h2 {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* About Us */
#about {
    padding: 100px 50px;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-content img {
    width: 45%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.about-text {
    width: 55%;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    font-size: 18px;
}

.about-text ul {
    list-style: none;
    margin-top: 30px;
}

.about-text li {
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.about-text i {
    color: #f5af19;
    font-size: 20px;
    margin-right: 15px;
    background: rgba(245, 175, 25, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* Contact form */
#contact {
    padding: 100px 50px;
}

.contact-form-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 50px;
}

form label {
    display: block;
    margin-top: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #f5af19;
    background: rgba(245, 175, 25, 0.05);
    box-shadow: 0 0 15px rgba(245, 175, 25, 0.2);
}

.error {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 8px;
}

#success-msg {
    color: #f5af19;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

form .btn-main {
    margin-top: 30px;
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Footer */
footer {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: 50px;
}

footer h3 {
    font-size: 28px;
    background: linear-gradient(to right, #f12711, #f5af19);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
}

footer p {
    color: rgba(255,255,255,0.5);
}

.socials {
    margin: 30px 0;
}

.socials a {
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    margin: 0 15px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.socials a:hover {
    color: #ff4b2b;
    transform: translateY(-5px);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .card, .project-box {
        width: 45%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 30px;
    }
    
    nav ul.links {
        display: none;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul.links.show {
        display: flex;
    }
    
    nav ul.links li {
        margin: 15px 0;
    }

    .menu-icon {
        display: block;
    }

    #home {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }

    .home-text, .home-img {
        width: 100%;
    }
    
    .home-text {
        margin-bottom: 60px;
    }
    
    .home-text h1 {
        font-size: 45px;
    }

    .about-content {
        flex-direction: column;
    }
    
    .about-content img, .about-text {
        width: 100%;
    }

    .card, .project-box {
        width: 100%;
    }
    
    #stats {
        flex-direction: column;
        gap: 40px;
    }
}

/* Scroll animation class */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
