/* 
   Nyrto.ph - Main Stylesheet
   Main color: #f2bb05 (golden yellow)
   Secondary colors: #19334d (dark blue), #ffffff, #f4f4f4, #000000
*/

/* ==================== */
/* Global Styles & Reset */
/* ==================== */

:root {
    --primary-color: #f2bb05;
    --secondary-color: #19334d;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-light: #ffffff;
    --background-gray: #f4f4f4;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-speed);
}

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(242, 187, 5, 0.3);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(25, 51, 77, 0.3);
}

/* ==================== */
/* Header & Navigation */
/* ==================== */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 1rem 0;
    transition: all var(--transition-speed);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
}

.logo-dot {
    color: var(--primary-color);
    font-size: 2.2rem;
}

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

.nav-menu {
    display: flex;
    transition: all var(--transition-speed);
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

.nav-menu a:hover:before,
.nav-menu a.active:before {
    width: 100%;
}

.contact-btn {
    padding: 0.5rem 1rem !important;
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    border-radius: 4px;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text) !important;
}

.contact-btn:before {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all var(--transition-speed);
}

/* ==================== */
/* Hero Slider Section */
/* ==================== */

.hero-slider {
    margin-top: 76px; /* Account for fixed header */
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(25, 51, 77, 0.4), rgba(25, 51, 77, 0.7));
}

.slide-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    z-index: 10;
    max-width: 800px;
}

.slide-content h1 {
    margin-bottom: 1rem;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-slide,
.next-slide {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: all var(--transition-speed);
    color: var(--secondary-color);
}

.prev-slide:hover,
.next-slide:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.slider-dots {
    display: flex;
    margin: 0 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--light-text);
    background-color: transparent;
    margin: 0 5px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* ==================== */
/* About Us Section */
/* ==================== */

.about-us {
    background-color: var(--background-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.expertise {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all var(--transition-speed);
}

.expertise:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.expertise i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.expertise h3 {
    margin-bottom: 0.5rem;
}

.expertise p {
    font-size: 0.9rem;
}

/* ==================== */
/* Services Section */
/* ==================== */

.services {
    background-color: var(--background-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9rem;
}

/* ==================== */
/* Contact Section */
/* ==================== */

.contact {
    background-color: var(--background-light);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: 2rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.email-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.email-btn i {
    margin-right: 0.5rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.contact-phone i {
    color: var(--primary-color);
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 4rem 0 0;
}

.footer a {
    color: var(--light-text);
}

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

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

.footer-info {
    padding-right: 2rem;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    transition: all var(--transition-speed);
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.footer-contact address {
    font-style: normal;
}

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

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.operating-hours {
    margin-top: 1.5rem;
}

.operating-hours p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-credentials {
    text-align: right;
    opacity: 0.8;
}

.footer-credentials p {
    margin-bottom: 0.3rem;
}

/* ==================== */
/* Responsive Styles */
/* ==================== */

@media screen and (max-width: 1024px) {
    .expertise-blocks,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-slider {
        height: 70vh;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 4px 10px var(--shadow-color);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 76px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin-left: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info {
        padding-right: 0;
    }
    
    .footer h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a:before {
        display: none;
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-credentials {
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .expertise-blocks,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 100vh;
        min-height: 600px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .svg_white {
        color: white;
    }
}