.download-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.4);
}/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar - Hidden by default, visible on scroll */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Show scrollbar when scrolling */
html.scrolling ::-webkit-scrollbar-thumb {
    opacity: 1;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

html.scrolling {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2c3e50;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #e74c3c;
    transition: all 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.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(7px, -6px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 120px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Button Group for Hero Section */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-align: center;
    line-height: 1.6;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 75%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem 7rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 2rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    background: white;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group.error .form-error {
    display: block;
}

.form-group.success input,
.form-group.success textarea {
    border-color: #27ae60;
    background: #f0f9f4;
}

.submit-button {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.submit-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About Page Styles */
.about-page {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background-color: #fff;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    max-width: none;
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-text {
    margin-bottom: 3rem;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-skills {
    margin-bottom: 3rem;
}

.about-skills h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.skill-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

/* Projects Page Styles */
.projects-page {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background-color: #fff;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.projects-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.project-item:last-child {
    border-bottom: none;
}

.project-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-video video {
    width: 576px;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background-color: #dde7f1;
}

/* Video Download Container Styles */
.video-download-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-download-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    color: #495057;
    text-align: center;
    padding: 2rem;
}

.video-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.4;
}

.video-submessage {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.project-info {
    padding: 1rem 0;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.project-description {
    color: #555;
    line-height: 1.7;
}

.project-description p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.project-tech {
    margin: 2rem 0;
}

.project-tech h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Coming Soon Project Styles */
.project-item.coming-soon {
    opacity: 0.7;
}

.coming-soon-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.coming-soon-placeholder p {
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.future-projects-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.future-projects-list li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Gallery Page Styles - Updated for clean grid layout */
.gallery-page {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background-color: #fff;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-style: normal;
}

.gallery-wrapper {
    position: relative;
    display: block;
}

/* Hide old arrow styles */
.gallery-arrow {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.5rem;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    transition: all 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-caption {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #e74c3c;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 300;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 0;
}

.footer-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 1rem;
    border: 2px solid #34495e;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
}

.social-links a:hover {
    color: #0077b5;
    border-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.social-links svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 1rem 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .button-group {
        justify-content: center;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* About page mobile styles */
    .about-container {
        max-width: 600px;
    }

    .about-title {
        font-size: 2rem;
        text-align: center;
    }

    .about-text {
        margin-bottom: 2rem;
    }

    .about-text p {
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        max-width: 500px;
    }

    /* Projects page mobile styles */
    .projects-page {
        padding: 100px 1rem 2rem;
    }

    .projects-title {
        font-size: 2rem;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-link {
        justify-content: center;
        text-align: center;
    }

    .tech-tags {
        justify-content: center;
    }

    /* Mobile Responsiveness for Download Container */
    .video-placeholder {
        height: 350px;
        padding: 1.5rem;
    }

    .video-message {
        font-size: 1.1rem;
    }

    .video-submessage {
        font-size: 0.95rem;
    }

    .download-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Gallery responsive */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-close {
        top: -30px;
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .hero {
        padding: 90px 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .download-button,
    .cta-button,
    .contact-button {
        width: 100%;
        text-align: center;
        max-width: 280px;
        margin-right: 0;
        margin-top: 0;
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .about-page {
        padding: 100px 1rem 2rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    /* Projects mobile styles */
    .projects-container {
        margin: 0 auto;
    }

    .projects-title {
        font-size: 1.8rem;
    }

    .project-description p {
        font-size: 0.95rem;
    }

    .coming-soon-placeholder {
        height: 250px;
    }

    /* Mobile styles for video placeholder */
    .video-placeholder {
        height: 300px;
        padding: 1rem;
    }

    .video-message {
        font-size: 1rem;
    }

    .video-submessage {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Gallery mobile styles */
    .gallery-page {
        padding: 100px 1rem 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 4/5;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .lightbox-image {
        max-height: 70vh;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}