/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

html {
    height: 100%;
    position: relative;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    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 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
    /* Center video if aspect ratio doesn't match */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: -1;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(231, 76, 60, 0.8)), url('./files/pr1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
}

/* Video poster for better mobile loading */
.hero-video[poster] {
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.video-controls:hover {
    opacity: 1;
}

.video-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* About Section */
.about {
    padding: 50px 5%;
    background: var(--white);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
}

/* Services Section */
.services {
    padding: 50px 5%;
    background: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

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

/* Projects Section */
.projects {
    padding: 50px 5%;
    background: var(--white);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

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

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team {
    padding: 50px 5%;
    background: var(--light-bg);
}

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

.team-member {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
    text-align: center;
}

.team-member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-member-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background: var(--primary-color);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #c0392b;
}

/* Footer */
footer {
    background: #1a252f;
    color: var(--white);
    padding: 2rem 5%;
    position: relative;
    width: 100%;
    clear: both;
    margin-top: auto;
}

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

footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    display: inline-block;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

footer p {
    color: #ccc;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

footer .footer-grid > div {
    min-width: 0;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    html, body {
        height: auto !important;
        overflow-y: auto !important;
    }
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        height: 70vh;
        height: 70dvh; /* Dynamic viewport height for mobile */
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero-video {
        /* Ensure video covers full area on mobile */
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        /* Better performance on mobile */
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .hero-fallback {
        /* Disable fixed attachment on mobile for better performance */
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .video-controls {
        bottom: 20px;
        right: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .video-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    footer {
        position: relative !important;
        width: 100% !important;
        padding: 3rem 5% !important;
        margin-top: 0 !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    footer h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    footer ul li {
        margin-bottom: 1rem;
    }
    
    footer ul li a {
        font-size: 1.05rem;
        padding: 0.3rem 0;
    }
    
footer .contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

footer .contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

footer .contact-item i {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

footer .contact-item div {
    flex: 1;
    color: #ccc;
    line-height: 1.6;
}

footer .contact-item strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

footer .contact-item a {
    color: #ccc;
    word-break: break-word;
    transition: color 0.3s ease;
}

footer .contact-item a:hover {
    color: var(--accent-color);
}

footer .contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

footer .contact-item i {
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 1.3rem;
}

footer .contact-item div {
    flex: 1;
}

footer .contact-item strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

footer .contact-item a {
    color: #ccc;
    word-break: break-word;
}

footer .contact-item a:hover {
    color: var(--accent-color);
}
    
    /* Services section mobile spacing */
    .services {
        padding: 60px 4% !important;
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
    
    .services .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .services-grid {
        gap: 1.5rem !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .section-title {
        padding: 0 2% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .hero {
        height: 60vh;
        height: 60dvh; /* Dynamic viewport height for mobile */
        min-height: 400px;
        max-height: 500px;
    }
    
    .hero-video {
        /* Slightly larger scale for better coverage on small screens */
        transform: translate(-50%, -50%) scale(1.2);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    footer {
        position: relative !important;
        width: 100% !important;
        padding: 2.5rem 4% !important;
        margin-top: 0 !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    footer .footer-grid {
        gap: 2.5rem;
    }
    
    footer h3 {
        font-size: 1.4rem;
        margin-bottom: 1.8rem;
    }
    
    footer ul li {
        margin-bottom: 1rem;
    }
    
    footer ul li a {
        font-size: 1rem;
    }
    
    footer .contact-item {
        margin-bottom: 1.8rem;
        padding-bottom: 1.8rem;
    }
    
    footer .contact-item i {
        font-size: 1.4rem;
        margin-right: 1rem;
    }
    
    footer .contact-item strong {
        display: block;
        margin-bottom: 0.6rem;
        font-size: 1rem;
    }
    
    footer .contact-item div {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    footer .footer-bottom {
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    footer .footer-bottom p {
        font-size: 0.9rem;
    }
    
    /* Services section small mobile spacing */
    .services {
        padding: 50px 3% !important;
        padding-left: 3% !important;
        padding-right: 3% !important;
    }
    
    .services .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .services-grid {
        gap: 1.2rem !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .service-card {
        padding: 1.5rem 1rem !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .section-title {
        padding: 0 1% !important;
        font-size: 2rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 80vh;
        height: 80dvh; /* Dynamic viewport height for mobile */
        max-height: 500px;
    }
    
    .hero-video {
        transform: translate(-50%, -50%) scale(1.15);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-video {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

