/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1a1a40, #341a78);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.98);
}

.navbar-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand a:hover {
    color: #6c63ff;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.navbar-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6c63ff;
    transition: width 0.3s ease;
}

.navbar-links li a:hover::after {
    width: 100%;
}

.navbar-links li a:hover {
    color: #6c63ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1a1a40, #341a78);
    padding: 0 2rem;
    flex-direction: column;
    gap: 2rem;
}

.hero-image {
    height: 250px;
    width: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #6c63ff;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(108, 99, 255, 0.7);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    color: #fff;
    background-color: #6c63ff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn:hover {
    background-color: #5a52cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
}

/* About Section */
#about {
    background: linear-gradient(135deg, #2a2a50, #1a1a40);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #2a2a50, #1e1e3f);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: #fff;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #6c63ff;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card-title {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.project-card-text {
    margin-top: 0.5rem;
    color: #bbb;
    line-height: 1.6;
}

/* Contact Form */
#contact {
    background: linear-gradient(135deg, #1a1a40, #2a2a50);
}

form {
    max-width: 600px;
    margin: 2rem auto;
}

form input,
form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #6c63ff;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #8a7fff;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

form input::placeholder,
form textarea::placeholder {
    color: #aaa;
}

form textarea {
    resize: vertical;
    min-height: 150px;
}

form button {
    width: 100%;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.9);
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    padding-right: 5rem;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links img {
    width: 32px;
    height: 32px;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #6c63ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #5a52cc;
    transform: translateY(-5px);
}

.scroll-top::before {
    content: '↑';
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .hero-image {
        height: 200px;
        width: 200px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        padding-right: 0rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}   