* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a1929;
    color: #E2E2E2;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

nav {
    background-color: rgba(10, 25, 41, 0.9);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9DD8FF;
    text-decoration: none;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
}

.nav-links a {
    color: #E2E2E2;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #9DD8FF;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, #0a1929, #1a2b3c);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #9DD8FF;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.tech-stack {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #101f33;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
}

.tech-icon:hover {
    transform: scale(1.1);
}

.services {
    padding: 4rem 2rem;
    background-color: #101f33;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background-color: #1a2b3c;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #9DD8FF;
    color: #0a1929;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
    outline: none;
    border: none;
}

.btn:hover {
    transform: scale(1.05);
}

button.btn {
    cursor: pointer;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.contact {
    padding: 4rem 2rem;
    background-color: #0a1929;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    color: #9DD8FF;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #1a2b3c;
    border: 1px solid #2a3b4c;
    color: #E2E2E2;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9DD8FF;
}

.form-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.form-message.error {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.projects {
    padding: 4rem 2rem;
    background-color: #0a1929;
}

.projects-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.projects-subtitle {
    max-width: 1600px;
    margin: 1rem auto 0.5rem;
    color: #9DD8FF;
    font-size: 1.5rem;
}

.apps-scroll-wrap {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.apps-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.apps-arrow {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #1a2b3c;
    color: #9DD8FF;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.apps-arrow:hover {
    background: #2a3b4c;
    transform: scale(1.05);
}

.apps-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4rem) / 3);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.apps-scroll .project-card {
    scroll-snap-align: start;
}

.apps-scroll::-webkit-scrollbar {
    display: none;
}

.project-card {
    background: #1a2b3c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.app-card .project-image {
    height: 276px;
}

.web-card .project-image {
    height: 320px;
}

@media (max-width: 768px) {
    .project-image {
        height: 160px;
    }

    .app-card .project-image {
        height: 220px;
    }

    .web-card .project-image {
        height: 150px;
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: #9DD8FF;
}

.project-content p {
    color: #E2E2E2;
    margin-bottom: 1rem;
}

.btn-secondary {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1rem;
    background-color: #9DD8FF;
    color: #0a1929;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #7bc0ff;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .apps-scroll {
        grid-auto-columns: 85%;
    }

    .apps-scroll-wrap {
        gap: 0.6rem;
    }

    .apps-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .projects-subtitle {
        font-size: 1.25rem;
    }
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #9DD8FF !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #E2E2E2;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 25, 41, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Hamburger Animation */
.hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Down2Share Screenshots Section --- */
.screenshots {
    padding: 4rem 2rem;
    background-color: #101f33;
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.screenshot-img {
    width: 200px;
    max-width: 90vw;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    background: #0a1929;
    display: block;
    transition: transform 0.3s;
}

.screenshot-img:hover {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .screenshots-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .screenshot-img {
        width: 90vw;
        max-width: 320px;
        height: auto;
    }
}

/* Down2Share Features Section */
.features {
    padding: 4rem 2rem;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.feature-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(26,43,60,0.7);
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2.2rem;
    display: block;
}

.feature-title {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    color: #9DD8FF;
    font-weight: bold;
}

.feature-desc {
    font-weight: normal;
    color: #E2E2E2;
    font-size: 1rem;
    display: block;
}

.feature-list-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
}

.feature-list-row .feature-centered {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(26,43,60,0.7);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .feature-list-row {
        gap: 1rem;
        max-width: 100vw;
    }
    .feature-list-row .feature-centered {
        padding: 1rem 0.5rem;
        font-size: 0.98rem;
    }
}

@media (max-width: 900px) {
    .feature-list-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .feature-list-row .feature-centered {
        min-width: 220px;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 700px) {
    .feature-list-row {
        flex-direction: column;
        gap: 1rem;
    }
    .feature-list-row .feature-centered {
        max-width: 100%;
        width: 100%;
    }
}

/* Down2Share Download Section */
.download {
    padding: 4rem 2rem;
}

.download-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dl-btn {
    display: inline-block;
    padding: 1rem 2rem;
    color: #0a1929;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
    outline: none;
    border: none;
    margin-top:1rem;
}

.dl-btn:hover {
    transform: scale(1.05);
}