/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 20px 5%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #38bdf8;
    z-index: 2;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #38bdf8;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #38bdf8;
}

/* Gradient Background Animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(56, 189, 248, 0.1),
        rgba(15, 23, 42, 0.3),
        rgba(56, 189, 248, 0.1)
    );
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
    z-index: -1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #38bdf8;
    font-weight: 700;
}

.typed-text {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    padding: 20px;
    background: linear-gradient(45deg, #38bdf8, rgba(56, 189, 248, 0.3));
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .typed-text {
        font-size: 1.5rem;
    }

    .profile-frame {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 100px;
}

.about-image-frame {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.3));
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.about-text {
    padding: 20px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.skills-section {
    margin-top: 40px;
}

.skills-section h3 {
    color: #38bdf8;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.skill-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.skill-badge i {
    font-size: 1.2rem;
    color: #38bdf8;
    transition: all 0.3s ease;
}

.skill-badge span {
    font-weight: 500;
}

.skill-badge:hover {
    transform: translateY(-5px);
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

.skill-badge:hover i {
    transform: scale(1.2);
    color: #fff;
}

.skill-badge:visited,
.skill-badge:active,
.skill-badge:focus {
    color: #fff;
    text-decoration: none;
}

.skill-badge:hover {
    color: #fff;
    text-decoration: none;
}

/* Responsive Design for About Section */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
    }

    .about-image-frame {
        max-width: 300px;
    }

    .about-text {
        padding: 0;
    }

    .about-text h2 {
        text-align: center;
    }

    .skills-section h3 {
        text-align: center;
    }

    .skill-badges {
        justify-content: center;
    }
}

/* Responsive adjustments for skill badges */
@media (max-width: 768px) {
    .skill-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .skill-badge i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .skill-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .skill-badge i {
        font-size: 1rem;
    }
    
    .skill-badges {
        gap: 10px;
    }
}

/* Projects Section */
.project-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 40px 0 30px;
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #38bdf8, transparent);
    border-radius: 2px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    opacity: 1;
    visibility: visible;
}

.project-card {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.1);
}

.card-content {
    padding: 30px;
}

.project-card h3 {
    font-size: 1.5rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

.project-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tools-used {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tools-used span {
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 20px;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    position: relative;
    text-align: center;
    padding: 40px 30px;
    background-color: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.service-card:hover {
    transform: scale(1.03);
    background-color: #1e293b;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.1);
}

.service-icon i {
    width: 35px;
    height: 35px;
    color: #38bdf8;
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-hover-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-card:hover .service-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.service-hover-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-hover-content li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.service-hover-content li:first-child {
    border-top: none;
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-hover-content {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 20px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 20px;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.client-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.star-rating {
    margin: 15px 0;
    color: #38bdf8;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.star-rating i {
    width: 20px;
    height: 20px;
    color: #38bdf8;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px auto;
    max-width: 600px;
}

.client-name {
    color: #38bdf8;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.client-position {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.slider-controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-btn,
.next-btn {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    transform: scale(1.2);
}

.prev-btn i,
.next-btn i {
    width: 24px;
    height: 24px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(56, 189, 248, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #38bdf8;
    transform: scale(1.3);
}

/* Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #38bdf8;
    display: flex;
    align-items: center;
}

.input-icon i {
    width: 20px;
    height: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background-color: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    outline: none;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.submit-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    transition: all 0.3s ease;
}

.social-link i {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.popup-content h3 {
    color: #38bdf8;
    margin-bottom: 10px;
}

.popup-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form {
        padding: 0 20px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Footer */
footer {
    padding: 40px 0;
    background: linear-gradient(to top, rgba(56, 189, 248, 0.1), transparent);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-social-link i {
    width: 20px;
    height: 20px;
}

.footer-social-link:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social-link {
        width: 35px;
        height: 35px;
    }
}

/* Responsive Design */
/* Large Screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .hero-content, .about-content {
        gap: 40px;
    }
}

/* Medium Screens */
@media (max-width: 992px) {
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-frame {
        margin: 0 auto;
    }

    /* Projects & Services */
    .project-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .typed-text {
        font-size: 1.2rem;
    }

    /* Projects & Services */
    .project-grid, .services-grid {
        grid-template-columns: 1fr;
    }

    .project-card, .service-card {
        padding: 20px;
    }

    /* Testimonials */
    .testimonial-slide {
        padding: 20px 10px;
    }

    .client-image {
        width: 80px;
        height: 80px;
    }

    /* Contact Form */
    .contact-form {
        padding: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .typed-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skill-badges, .tools-used {
        justify-content: center;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px 12px 12px 40px;
    }
}

/* Height-based Media Queries */
@media (max-height: 700px) {
    .hero {
        min-height: 100vh;
        padding-top: 100px;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }
}