* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

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

header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(160, 118, 177, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #A076B1;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(160, 118, 177, 0.6));
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 25px rgba(160, 118, 177, 1));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #A076B1;
}

.nav-links a.active {
    color: #A076B1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #A076B1, #C89BD8);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

main {
    margin-top: 80px;
    padding: 0;
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: #f8fafc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.page-header p {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-section {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(160, 118, 177, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(160, 118, 177, 0.3);
    border-color: rgba(160, 118, 177, 0.5);
    background: rgba(26, 26, 46, 0.9);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A076B1 0%, #8A65A0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(160, 118, 177, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-section:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(160, 118, 177, 0.6);
}

.service-title {
    flex: 1;
}

.service-title h2 {
    font-size: 1.8rem;
    color: #f8fafc;
    margin-bottom: 0.3rem;
}

.service-title .subtitle {
    font-size: 1rem;
    color: #A076B1;
    font-weight: 500;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2rem;
    align-items: start;
}

.service-details {
    grid-column: 1;
    grid-row: 1;
}

.service-description {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 0;
}

.service-image {
    grid-column: 2;
    grid-row: 1;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(160, 118, 177, 0.3), rgba(138, 101, 160, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(160, 118, 177, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    justify-self: center;
}

.service-image video,
.service-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    display: block;
}

.deliverables {
    grid-column: 1 / 3;
    grid-row: 2;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(160, 118, 177, 0.2);
}

.deliverables h3 {
    font-size: 1.2rem;
    color: #A076B1;
    margin-bottom: 1rem;
    text-align: center;
}

.deliverable-list {
    list-style: none;
}

.deliverable-list li {
    color: #cbd5e1;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
    background: rgba(160, 118, 177, 0.1);
    border-radius: 6px;
    border-left: 3px solid #A076B1;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.deliverable-list li:hover {
    background: rgba(160, 118, 177, 0.2);
    transform: translateX(3px);
}

/* Construction Video: 852x480 ratio (16:9) */
.construction-mapping .service-image {
    width: 480px;
    height: 270px; /* Maintains 16:9 ratio */
}

/* Solar Farm Image: 640x360 ratio (16:9) */
.solar-farm .service-image {
    width: 480px;
    height: 270px; /* Maintains 16:9 ratio */
}

/* Agricultural Image: 596x397 ratio (~3:2) */
.agricultural .service-image {
    width: 450px;
    height: 300px; /* Maintains ~3:2 ratio */
}

.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(160, 118, 177, 0.4);
}

.service-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.back-button {
    display: inline-block;
    background: linear-gradient(135deg, #A076B1 0%, #8A65A0 100%);
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(160, 118, 177, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #8A65A0 0%, #7A5B8E 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(160, 118, 177, 0.5);
}

footer {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    color: #cbd5e1;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(160, 118, 177, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for each media type */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Show hamburger menu on tablet */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(160, 118, 177, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .logo-img {
        height: 45px;
        z-index: 1002;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .service-title h2 {
        font-size: 1.5rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
    }

    .service-details {
        grid-column: 1;
        grid-row: 1;
    }

    .service-image {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .deliverables {
        grid-column: 1;
        grid-row: 3;
    }

    /* Responsive frames for tablet - much smaller */
    .construction-mapping .service-image,
    .solar-farm .service-image {
        width: 240px;
        height: 135px; /* Maintains 16:9 ratio */
        margin: 0 auto;
    }

    .agricultural .service-image {
        width: 225px;
        height: 150px; /* Maintains 3:2 ratio */
        margin: 0 auto;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(160, 118, 177, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        padding: 1.5rem 0;
    }

    .logo-img {
        height: 40px;
        z-index: 1002;
    }

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

    .page-header p {
        font-size: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .service-title h2 {
        font-size: 1.3rem;
    }

    .service-section {
        padding: 1.2rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.2rem;
    }

    .service-details {
        grid-column: 1;
        grid-row: 1;
    }

    .service-image {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .deliverables {
        grid-column: 1;
        grid-row: 3;
    }

    /* Responsive frames for mobile - very small */
    .construction-mapping .service-image,
    .solar-farm .service-image {
        width: 200px;
        height: 113px; /* Maintains 16:9 ratio */
    }

    .agricultural .service-image {
        width: 180px;
        height: 120px; /* Maintains 3:2 ratio */
    }
}