/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-main: 'Open Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #0056b3;
    transition: width 0.5s ease;
    z-index: -1;
}

.btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--dark-color);
    position: relative;
}

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

section {
    padding: 80px 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links li:last-child {
    margin-left: 0;
}

.nav-links a {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

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

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

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

.nav-links a.active {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 60px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.2s ease-in-out;
    z-index: 5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: white;
}

.btn-outline::before {
    background-color: var(--primary-color);
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* 3D Swiper Slider */
.designs {
    background-color: #f9f9f9;
    overflow: hidden;
}

.scene {
    perspective: 1000px;
    padding: 40px 0;
}

.swiper-container {
    width: 90%;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    transition: transform 0.8s;
}

.design-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: all 0.6s ease;
    background-color: white;
}

.design-card:hover {
    transform: scale(1.02) translateZ(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.design-image {
    height: 70%;
    overflow: hidden;
}

.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.design-card:hover .design-image img {
    transform: scale(1.05);
}

.design-info {
    padding: 20px;
    background-color: white;
    text-align: center;
}

.design-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.design-info p {
    color: var(--secondary-color);
    font-size: 14px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Live Feed Section */
.live-feed {
    background-color: white;
}

.camera-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.camera {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.camera-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.camera-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.camera-header i {
    margin-left: 10px;
}

.video-feed {
    height: 250px;
    background-color: #222;
    position: relative;
}

.placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.placeholder i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* About Section */
.about {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.about-image img, .about-image video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    text-align: center;
}

.stat {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    margin: 0 10px;
}

.stat {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat h4 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.stat-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 60px;
    color: rgba(0, 123, 255, 0.1);
    z-index: 1;
}

#aboutVideo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

#aboutVideo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Controls styling for the video */
#aboutVideo::-webkit-media-controls {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0 0 10px 10px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-form, .contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form h3, .contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-status {
    margin-top: 20px;
}

.success-message, .error-message {
    padding: 15px 20px;
    border-radius: 5px;
    display: none;
    align-items: center;
    margin-top: 15px;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.success-message i, .error-message i {
    font-size: 20px;
    margin-right: 10px;
}

.form-status.success .success-message {
    display: flex;
    animation: slideIn 0.5s forwards;
}

.form-status.error .error-message {
    display: flex;
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-media {
    margin-top: 30px;
    display: flex;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s;
}

.social-media a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-image {
        margin-left: 0;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .camera-container {
        flex-direction: column;
    }
    
    .stat {
        margin: 10px 0;
    }
    
    .nav {
        padding: 15px 20px;
    }
    
    .nav-links li {
        margin-right: 15px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
}

@media screen and (max-width: 768px) {
    .stats {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    #aboutVideo {
        max-height: 300px;
        object-fit: cover;
    }
}
