* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e74c3c;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a,
.social-icons i {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    cursor: pointer;
}

.social-icons a:hover {
    color: #e74c3c;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.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 with Video Background */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
    max-width: 1200px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h1 .highlight {
    color: #e74c3c;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.email-form label {
    font-size: 0.9rem;
}

.email-form input {
    padding: 0.8rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
}

.email-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-form button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.email-form button:hover {
    background-color: #c0392b;
}

/* About Section - Base Styles */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    align-items: center;
    margin-top: 60px;
}

.about-content {
    background-color: #2c3e50;
    color: white;
    padding: 5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content h2 .highlight {
    color: #e74c3c;
}

.about-content p {
    font-size: 1.8rem;
    line-height: 1.5;
}

/* Photo Image Section - For Work Page */
.about-image-photo {
    background-color: #f5f5f5;
    height: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.about-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Old SVG Image Style - For Other Pages */
.about-image {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><rect fill="%23c9b8a8" width="600" height="600"/><circle cx="300" cy="250" r="80" fill="%23fff"/><rect x="220" y="320" width="160" height="200" rx="10" fill="%2387ceeb"/><rect x="220" y="320" width="160" height="60" fill="%2387ceeb"/><path d="M220 380 L380 380 L380 420 Q380 440 360 440 L240 440 Q220 440 220 420 Z" fill="%2387ceeb"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100%;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: #f8f9fa;
    margin-top: 60px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even) > * {
    direction: ltr;
}

.service-content h3 {
    color: #e74c3c;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: #666;
    line-height: 1.8;
}

.service-image {
    width: 100%;
    height: 300px;
    background-color: #e8f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image svg {
    width: 60%;
    height: 60%;
}

/* Page Header */
.page-header {
    background-color: #2c3e50;
    color: white;
    padding: 8rem 5% 4rem;
    margin-top: 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.placeholder-card {
    opacity: 0.6;
    cursor: default;
}

.placeholder-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-logo {
    width: 100%;
    height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-logo svg {
    max-width: 100%;
    max-height: 100%;
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.view-details {
    color: #e74c3c;
    font-weight: bold;
    align-self: flex-start;
    transition: all 0.3s;
}

.project-card:hover .view-details {
    transform: translateX(5px);
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e74c3c;
}

.project-detail {
    padding: 3rem;
}

.project-detail-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.project-detail-logo svg {
    width: 100%;
    height: 100%;
}

.project-detail h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.project-meta {
    color: #e74c3c;
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-section {
    margin-bottom: 2rem;
}

.project-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.project-section p {
    color: #666;
    line-height: 1.8;
}

.project-section ul {
    list-style: none;
    padding-left: 0;
}

.project-section li {
    color: #666;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.project-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background-color: #e8f4f8;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    margin-top: 60px;
}

.contact-form-section {
    padding: 5rem;
    background-color: white;
}

.contact-form-section h2 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    align-self: center;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #c0392b;
}

.contact-info-section {
    background-color: #e8f0f7;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.contact-info-section h2 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-info-section .social-icons {
    margin-bottom: 2rem;
}

.contact-info-section .social-icons a {
    color: #2c3e50;
}

.building-image {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-icons:last-child {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .about,
    .service-item,
    .contact {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-form-section {
        padding: 3rem 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1.2rem;
    }

    .about-image-photo {
        min-height: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 2rem 5%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .project-detail {
        padding: 2rem 1.5rem;
    }

    .project-detail h2 {
        font-size: 1.8rem;
    }
}