/* CSS Reset & Variables */
:root {
    --primary-color: #2577a9;
    /* Modern Blue */
    --red: #c1462c;
    --secondary-color: #eec043;
    /* Accent Gold/Orange for actions */
    --dark-bg: #2577a9;
    /* Slate 900 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --text-color: #334155;
    /* Slate 700 */
    --text-light: #94a3b8;
    /* Slate 400 */
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-bg);
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    background-color: #1D9BD6;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-color);
    /* Or variable */
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--dark-bg);
    color: var(--white);
    border-color: var(--dark-bg);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background-color: #1EB85B;
}

.btn-telegram {
    background-color: #26A5E4;
    color: #ffffff;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-telegram:hover {
    background-color: #1D9BD6;
}

.btn-whatsapp i,
.btn-telegram i {
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon img {
    height: 54px;
    width: 54px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-color);
}

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

.nav-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-phone {
    font-weight: 700;
    color: var(--primary-color);
}

.navbar .btn-whatsapp,
.navbar .btn-telegram {
    width: 40px;
    height: 40px;
}

.navbar .btn-whatsapp i,
.navbar .btn-telegram i {
    font-size: 20px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bg.png') center/cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark-bg);
    text-shadow: 0 0px 22px rgba(255, 255, 255, 1);
}

.hero h1 .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #c1462c70;
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 30px;
    max-width: 550px;
    line-height: 1.8;
    font-weight: 600;
     text-shadow: 0 0px 22px rgba(255, 255, 255, 1);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-phone {
     text-shadow: 0 0px 22px rgba(255, 255, 255, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.hero-phone i {
    font-size: 1.8rem;
}

.hero-features {
    display: flex;
    gap: 15px;
    margin-top: 22px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-bg);
     text-shadow: 0 0px 22px rgba(255, 255, 255, 1);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 33px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    position: relative;
    padding: 20px;
    animation: floatY 6s ease-in-out infinite;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatY {
    0% {
        top: 0;
    }

    50% {
        top: -20px;
    }

    100% {
        top: 0;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* Sections Common */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Services */
.services {
    background-color: var(--white);
}

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

.gallery {
    background-color: var(--white);
}

.gallery-slider {
    position: relative;
}

.gallery-slider .slide {
    padding: 10px;
}

.gallery-slider img {
    width: 100%;
    height: 480px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

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

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain for product shots on white/transparent bg */
    background: #f8fafc;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-list li i {
    color: var(--primary-color);
}

.service-list li i {
    color: var(--primary-color);
}

/* Types of Transformers */
.types {
    background-color: var(--light-bg);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.type-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    /* Ensure image stays inside border radius */
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
    /* Add padding at bottom for text */
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.type-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
  
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.type-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.type-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0 15px;
}

/* Advantages */
.advantages {
    background-color: var(--white);
    /* Switch to white if types is light-bg or keep alternating */
}

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

.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.advantage-card .icon-box {
    margin-bottom: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-card .icon-box img {
    max-height: 100%;
    max-width: 290px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.advantage-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Process Section */
.process {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-bottom: 80px;
}

.process .section-header h2 {
    color: var(--white);
}

.process .section-header p {
    color: var(--text-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 40px 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.2);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 25px;
}

.step h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.step p {
    color: #fff;
    font-size: 0.9rem;
}

/* Responsive Process */
@media (max-width: 768px) {
    .process-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: stretch;
    }

    .step-connector {
        display: none;
        /* Hide connector on mobile */
    }

    .step {
        background: rgba(255, 255, 255, 0.08);
        padding: 20px;
        border-radius: 12px;
    }
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    box-shadow: var(--shadow);
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item a {
    font-weight: 500;
    font-size: 1.1rem;
}

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

.sub-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.contact-form-wrapper {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

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

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Footer & Contact */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col .logo {
        justify-content: center;
    }
}
/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 1.5rem;
    }
.hero{
    padding-top: 111px;
}
.section-header h2 {
         font-size: 1.5rem;
}
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-phone {
        font-size: 1.6rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        gap: 10px;
    }

    .nav-phone {
        display: none;
    }

    .navbar .btn-whatsapp,
    .navbar .btn-telegram {
        width: 36px;
        height: 36px;
    }
    .hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    }
    .logo {
    font-size: 1rem;
    }
    .types-grid {
        grid-template-columns: 1fr 1fr;
            gap: 14px;
    }
    .advantage-card {
        padding: 20px;
    }
    .type-card h3 {
    font-size: .9rem;
    }
    .section {
    padding: 30px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 10px;
}
}
