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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #4d4d4d;
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    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 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #f59e0b;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(15, 23, 42, 0.98);
    min-width: 250px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    border-radius: 10px;
    padding: 1rem 0;
    top: 100%;
    left: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dropdown-content a {
    color: #cbd5e1 !important;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}


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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInLeft 1s ease-out;
}

.hero-text h1 span {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: #1e293b;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #f59e0b;
}

.btn-secondary:hover {
    background: #f59e0b;
    color: #1e293b;
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid #f59e0b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 8rem 5% 6rem;
    background: #f8fafc;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-right: 1rem;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    flex-grow: 1;
}

.service-list li {
    padding: 0.6rem 0;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    color: #1e293b;
    padding-left: 0.5rem;
}

.service-list li::before {
    content: '●';
    color: #f59e0b;
    font-weight: bold;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.service-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* About Section */
.about {
    padding: 8rem 5%;
    background: #1e293b;
    color: #fff;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.about-text h2 span {
    color: #f59e0b;
}

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

.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    object-fit: cover;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f59e0b;
    display: block;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.78rem;
    align-items: start;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-image-wrapper {
    margin-bottom: 1rem;
}

.contact-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f59e0b;
    background: #fff;
    outline: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.contact-item {
    background: #fff;
    padding: 1.78rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

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

.contact-item i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #fff;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f59e0b;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-contact {
    color: #94a3b8;
}

.footer-contact i {
    color: #f59e0b;
    margin-right: 0.5rem;
    width: 20px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #f59e0b;
    color: #0f172a;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    margin: 0;
}

.service-grid-image { border-radius: 8px; margin-bottom: 30px; box-shadow: 10px 10px 6px rgba(0, 0, 0, 0.082); width: 95%; }

.trust-badges {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
    margin-top: 20px;
}

.trust-badges .badge-item {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    padding: 12px 16px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid #f59e0b;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 940px) {
    .hero-content {
        margin-top: 40px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .slider-nav-btn {
        margin: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-image, .about-image {
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .service-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .service-image {
        height: 150px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-image {
        height: 150px;
    }

    .hero-visual {
        display: none !important;
    }
}

@media screen and (max-width: 700px) {
    .slide-visual {
        display: none !important;
    }

    .slider-nav {
        display: none !important;
    }
}

    .slide-1 {
        position: relative;
        background: url(newcam.webp) center/cover no-repeat !important;
        background-size: cover !important;
    }

    .slide-2 {
        position: relative;
        background: url(presence-detector-1560w.jpg) center/cover no-repeat !important;
        background-size: cover !important;
    }

    .slide-3 {
        position: relative;
        background: url(firealarm.png) center/cover no-repeat !important;
        background-size: cover !important;
    }

    .slide-4 {
        position: relative;
        background: url(pdks-nedir.jpg) center/cover no-repeat !important;
        background-size: cover !important;
    }

    .slide-5 {
        position: relative;
        background: url(acil.jpg) center/cover no-repeat !important;
        background-size: cover !important;
    }

    .slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0) !important; /* Adjust opacity as needed (0.5 = 50% dark) */
    pointer-events: none; /* Ensure it doesn’t block interaction with content */
    z-index: 1;
    }

    .slide > * {
    position: relative;
    z-index: 2; /* Ensure content stays above the dark overlay */
    }

/* References Section */
.references {
    padding: 8rem 5% 6rem;
    background: #f8fafc;
    position: relative;
}

.references-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.reference-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.reference-card:hover::before {
    transform: scaleX(1);
}

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

.reference-logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reference-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.reference-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.reference-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

@media screen and (max-width: 480px) {
    .service-card {
        min-width: 100% !important;
    }
}