/* CSS Variables for Light/Dark Mode */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-accent: #001f3f;
    --nav-bg: #ffffff;
    --nav-text: #000000;
    --nav-hover: #001f3f;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-shadow-hover: rgba(0, 0, 0, 0.15);
    --border-color: #e0e0e0;
    --footer-bg: #001f3f;
    --footer-text: #ffffff;
    --slider-overlay: rgba(0, 31, 63, 0.9);
    --progress-bg: #e0e0e0;
    --progress-fill: linear-gradient(90deg, #001f3f, #4d9de0);
    --social-hover: #003366;
    --btn-primary: #001f3f;
    --btn-hover: #003366;
    --btn-shadow: rgba(0, 31, 63, 0.2);
    --status-completed: #e6f7e6;
    --status-completed-text: #2e7d32;
    --status-progress: #fff8e1;
    --status-progress-text: #ff8f00;
    --tech-tag-bg: #e0e7ff;
    --tech-tag-text: #001f3f;
    --grid-color: rgba(0, 0, 0, 0.03);
    --btn-bg: #007bff;
    --btn-primary: #007bff;
    --btn-hover: #0056b3;
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-accent: #4d9de0;
    --nav-bg: #2d2d2d;
    --nav-text: #ffffff;
    --nav-hover: #4d9de0;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.4);
    --border-color: #404040;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --slider-overlay: rgba(0, 0, 0, 0.8);
    --progress-bg: #404040;
    --progress-fill: linear-gradient(90deg, #4d9de0, #6bb6ff);
    --social-hover: #6bb6ff;
    --btn-primary: #4d9de0;
    --btn-hover: #6bb6ff;
    --btn-shadow: rgba(77, 157, 224, 0.3);
    --status-completed: #1b5e20;
    --status-completed-text: #81c784;
    --status-progress: #ff8f00;
    --status-progress-text: #ffcc02;
    --tech-tag-bg: #1e3a8a;
    --tech-tag-text: #93c5fd;
    --grid-color: rgba(255, 255, 255, 0.05);
    --btn-bg: #4d9de0;
    --btn-primary: #4d9de0;
    --btn-hover: #6bb6ff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: var(--bg-secondary);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 5%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 15px var(--card-shadow);
    transition: top 0.3s ease, background-color 0.3s ease;
}

nav.hidden {
    top: -80px;
}

nav .fa {
    color: var(--nav-text);
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1001;
    transition: color 0.3s ease;
}

.nav-links {
    flex: 1;
    text-align: right;
}

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

.nav-links ul li {
    display: inline-block;
    padding: 10px 20px;
    position: relative;
}

.nav-links ul li a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links ul li a.active {
    color: var(--nav-hover);
    font-weight: 700;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--nav-hover);
    display: block;
    margin: auto;
    transition: width 0.5s ease;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.nav-links ul li:hover a {
    color: var(--nav-hover);
}

/* Mobile Menu - Matched to Homepage */
@media (max-width: 768px) {
    nav .fa {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: var(--nav-bg);
        height: 100vh;
        width: 300px;
        top: 0;
        right: -300px;
        text-align: left;
        z-index: 999;
        transition: right 0.4s ease, background-color 0.3s ease;
        padding: 20px;
        box-shadow: -2px 0 10px var(--card-shadow);
        display: flex;
        flex-direction: column;
        border-left: 1px solid var(--text-primary);
    }

    .nav-links ul li {
        display: block;
        padding: 20px;
    }

    .nav-links ul li a {
        font-size: 18px;
        color: var(--text-primary);
        display: block;
        padding: 10px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .nav-links ul li a:hover,
    .nav-links ul li a.active {
        background-color: var(--btn-bg);
        color: white;
    }
    
    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid var(--text-primary);
        width: 100%;
    }
    
    .mobile-social-links .social-link {
        color: var(--text-primary);
        font-size: 24px;
        transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--card-bg);
        box-shadow: 0 2px 10px var(--card-shadow);
        border: 1px solid var(--text-primary);
    }
    
    .mobile-social-links .social-link:hover {
        background-color: var(--btn-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px var(--card-shadow);
    }
}

/* Hide social links on desktop and laptop */
@media (min-width: 769px) {
    .mobile-social-links {
        display: none;
    }
    
    /* Hide social links in navigation for desktop/laptop */
    .nav-links .mobile-social-links {
        display: none !important;
    }
}


/* Header */
.projects-header {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-hover));
    color: white;
    padding: 8rem 5% 4rem;
    text-align: center;
    margin-top: 60px;
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Skills Section */
.skills-section {
    padding: 4rem 5%;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-accent);
    font-size: 2.2rem;
    transition: color 0.3s ease;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-info span:first-child {
    font-weight: 700;
    color: var(--text-accent);
    transition: color 0.3s ease;
}

.progress-bar {
    height: 10px;
    background-color: var(--progress-bg);
    border-radius: 5px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.progress {
    height: 100%;
    width: 0;
    background: var(--progress-fill);
    border-radius: 5px;
    transition: width 3s ease-in-out;
}

/* Projects Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover:not(.expanded) {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--card-shadow-hover);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.card-front {
    display: flex;
    flex-direction: column;
}

.card-back {
    background-color: var(--card-bg);
    padding: 1.5rem;
    transform: rotateY(180deg);
    overflow-y: auto;
    transition: background-color 0.3s ease, transform 0.6s ease-in-out;
}

.project-card.expanded .card-front {
    transform: rotateY(180deg);
}

.project-card.expanded .card-back {
    transform: rotateY(0deg);
}

.project-card.expanded {
    transform: none;
}

.project-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-info h3 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-status.completed {
    background-color: var(--status-completed);
    color: var(--status-completed-text);
}

.project-status.in-progress {
    background-color: var(--status-progress);
    color: var(--status-progress-text);
}

.project-status.planned {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background-color: var(--tech-tag-bg);
    color: var(--tech-tag-text);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card-back h3 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card-back p {
    margin-bottom: 1.5rem;
}

.project-features {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-features li {
    margin-bottom: 0.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.project-link:hover {
    color: var(--nav-hover);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Gallery Styles */
.gallery-main {
    min-height: 100vh;
    padding-top: 80px;
}

.gallery-header {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-hover));
    color: white;
    padding: 8rem 5% 4rem;
    text-align: center;
    margin-top: 60px;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-section {
    padding: 4rem 5%;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.gallery-scroll-container {
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--text-accent) transparent;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: var(--text-accent);
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--btn-hover);
}

.gallery-container {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    min-width: max-content;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 350px;
    min-width: 350px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--card-shadow-hover);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-content {
    padding: 2rem;
}

.gallery-content h3 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.gallery-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-tags span {
    background-color: var(--tech-tag-bg);
    color: var(--tech-tag-text);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

/* Image modal should appear on top when opened from another modal */
#imageModal {
    z-index: 10000;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
    max-width: 80%;
}

.modal-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
    color: var(--text-accent);
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10001;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    display: none; /* Hidden by default, shown only for gallery views */
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide navigation arrows on very small screens */
@media (max-width: 480px) {
    .modal-nav {
        padding: 0.8rem 1rem;
        font-size: 1.5rem;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating Animations for Gallery */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

.floating-1 {
    animation: float1 6s ease-in-out infinite;
}

.floating-2 {
    animation: float2 8s ease-in-out infinite;
}

.floating {
    animation: float1 6s ease-in-out infinite;
}

/* Hackathon Modal Styles */
.hackathon-gallery {
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.hackathon-gallery h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hackathon-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.hackathon-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

}

.hackathon-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Auto scroll pause on hover */
.gallery-scroll-container:hover {
    animation-play-state: paused;
}

/* Scroll back button */
.scroll-back-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--btn-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

.scroll-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--btn-shadow);
    opacity: 1;
}

@media (max-width: 768px) {
    .scroll-back-btn {
        bottom: 70px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ========== SERVICES PAGE STYLES ========== */
.services-main {
    min-height: 100vh;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.services-header {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-hover));
    color: white;
    padding: 8rem 5% 4rem;
    text-align: center;
}

.services-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-section {
    padding: 4rem 5%;
    background-color: var(--bg-primary);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--card-shadow-hover);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-hover));
    color: white;
    margin-bottom: 3rem;
}

.service-card.featured .service-icon {
    color: white;
}

.service-icon {
    font-size: 3rem;
    color: var(--btn-primary);
    margin-bottom: 1rem;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card.featured .service-content h3 {
    color: white;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card.featured .service-content p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background-color: var(--btn-bg);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-card.featured .feature-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-price {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--btn-primary);
}

.service-card.featured .price {
    color: white;
}

.price-jmd {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    opacity: 0.8;
}

.service-card.featured .price-jmd {
    color: rgba(255, 255, 255, 0.8);
}

.price-base {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--btn-primary);
    text-align: center;
    margin-bottom: 0.3rem;
}

.service-card.featured .price-base {
    color: white;
}

.price-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--btn-primary);
    text-align: center;
}

.service-card.featured .price-message {
    color: white;
}

.price-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

.service-card.featured .price-note {
    color: rgba(255, 255, 255, 0.85);
}

.book-btn {
    background-color: white;
    color: var(--btn-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.book-btn:hover {
    background-color: var(--btn-hover);
    color: white;
    transform: translateY(-2px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Booking Form Styles */
.booking-section {
    padding: 4rem 5%;
    background-color: var(--bg-secondary);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.booking-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.booking-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--card-shadow);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--btn-primary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-hover));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--btn-shadow);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-header h1 {
        font-size: 2.2rem;
    }
    
    .services-header p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
    
    /* Mobile pricing adjustments */
    .service-price {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .price-jmd {
        font-size: 0.85rem;
        margin-left: 0;
        text-align: center;
    }
    
    .price-base {
        font-size: 1.1rem;
    }
    
    .price-message {
        font-size: 0.95rem;
    }
    
    .price-note {
        font-size: 0.8rem;
    }
    
    .service-card.featured .service-price {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 300px;
        min-width: 300px;
    }
    
    .gallery-header h1 {
        font-size: 2.2rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-content {
        padding: 1.5rem;
    }
    
    .gallery-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-header {
        padding-top: 6rem;
    }
    
    .gallery-header h1 {
        font-size: 1.8rem;
    }
    
    .gallery-content h3 {
        font-size: 1.3rem;
    }
    
    .gallery-item {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .gallery-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 5%;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--footer-text);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .fa {
        display: block;
        align-self: flex-end;
    }

    .nav-links {
        position: fixed;
        background: var(--nav-bg);
        align-items: flex-start;
        height: 100vh;
        width: 250px;
        top: 0;
        right: -250px;
        text-align: left;
        z-index: 999;
        transition: right 0.4s ease, background-color 0.3s ease;
        padding-top: 80px;
        box-shadow: -2px 0 15px var(--card-shadow);
        border-left: 1px solid var(--border-color);
    }

    .nav-links ul li {
        display: block;
        padding: 15px 30px;
    }

    .nav-links ul li a {
        font-size: 18px;
        color: var(--nav-text);
        transition: color 0.3s ease, background-color 0.3s ease;
    }
    
    .nav-links ul li a:hover,
    .nav-links ul li a.active {
        background-color: var(--btn-primary);
        color: white;
    }

    .projects-header {
        padding-top: 6rem;
    }

    .projects-header h1 {
        font-size: 2.2rem;
    }

    .project-card {
        height: 300px;
    }

    .project-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .projects-header h1 {
        font-size: 1.8rem;
    }
}