/* Base Styles */
:root {
    /* Color Palette */
    --primary-color: #2C3E50;
    --primary-light: #3e5871;
    --primary-dark: #1a2530;
    --secondary-color: blue;
    --secondary-light: #f39c12;
    --secondary-dark: #d35400;
    --accent-color: #F1C40F;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --error-color: #E74C3C;
    --neutral-100: #f8f9fa;
    --neutral-200: #e9ecef;
    --neutral-300: #dee2e6;
    --neutral-400: #ced4da;
    --neutral-500: #adb5bd;
    --neutral-600: #6c757d;
    --neutral-700: #495057;
    --neutral-800: #343a40;
    --neutral-900: #212529;

    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Spacing (8px grid) */
    --space-1: 0.5rem;    /* 8px */
    --space-2: 1rem;      /* 16px */
    --space-3: 1.5rem;    /* 24px */
    --space-4: 2rem;      /* 32px */
    --space-5: 3rem;      /* 48px */
    --space-6: 4rem;      /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.25rem; /* 4px */
    --radius-md: 0.5rem;  /* 8px */
    --radius-lg: 1rem;    /* 16px */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);   
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1);   
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);  
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--neutral-800);
    background-color: var(--neutral-100);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-2);
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-2);
}

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



ul {
    list-style: none;
}

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

/* Container */
.container {

    width: 90%;
    max-width: 1440px; 
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* Buttons 
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-100);
    border: 2px solid var(--neutral-100);
}

.btn-secondary:hover {
    background-color: var(--neutral-100);
    color: var(--primary-color);
    transform: translateY(-2px);
}*/

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: whitesmoke;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

#header.scrolled {
    background-color: rgb(255, 255, 255);
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: white;
    display: flex;
    align-items: center;
}

.logo img{
    height: 8ch;
}

.logo span {
    color: var(--secondary-color);
}

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

.nav-menu li {
    margin-left: var(--space-3);
}

.nav-menu a {
    color: rgb(93, 108, 245);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-normal);
}

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

.nav-menu .btn {
    padding: 0.5rem 1.25rem;
    margin-left: var(--space-1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

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

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    background: url(skynight.jpg)no-repeat;
    background-size: cover;
    background-position: center;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding: var(--space-6) 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--space-2);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-3);
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

/* Section Styles */
section {
    padding: var(--space-6) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.section-separator {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto var(--space-2);
}

.section-subheading {
    color: var(--neutral-600);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-image img {
    transition: transform var(--transition-slow);
}

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

.about-text h3 {
    margin-bottom: var(--space-2);
}

.values-list {
    padding-left: var(--space-1);
}

.values-list li {
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
}

.values-list i {
    color: var(--success-color);
    margin-right: var(--space-1);
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin: var(--space-3) 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: var(--space-2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    font-family: var(--heading-font);
}

.stat-label {
    font-size: 1rem;
    color: var(--neutral-600);
    font-weight: 600;
}

/* Services Section */
#services {
    background-color: var(--neutral-100);

}

.services-grid {
    /*display: grid;*/
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-3);

    display: flex;
    flex-direction: row;
    justify-content: center;
}

.service-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    width: 30%;
}

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

.service-icon {
    font-size: 5ch;
    color: var(--secondary-color);
    margin-bottom: var(--space-2);
}

.service-card h3 {
    margin-bottom: var(--space-1);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
    gap: var(--space-1);
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    gap: var(--space-3);

}

.project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: white;
    transition: all var(--transition-normal);

}

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

.project-img {
    height: 240px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-info {
    padding: var(--space-2);
}
.project-info-buttom{
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: auto;
    padding: auto;
    
}

.project-info-buttom a{
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    margin-top: var(--space-1);
    transition-duration: 5s;
    color: rgb(93, 108, 245);
    transition: 300ms;  
}

.project-info-buttom a:hover{
    color: blue;
}

.project-category {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background-color: var(--neutral-200);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--space-1);
}

/* Testimonials Section */
#testimonials {
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

#testimonials h2,
#testimonials .section-subheading {
    color: white;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.testimonial-slide.active {
    display: block;
}

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

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
}

.testimonial-quote {
    margin-bottom: var(--space-2);
}

.testimonial-quote i {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: var(--space-1);
}

.testimonial-quote p {
    font-size: 1.1rem;
    font-style: italic;
}

.testimonial-author h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--neutral-300);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-3);
}

.testimonial-prev,
.testimonial-next {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    color: var(--secondary-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 var(--space-2);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dot.active,
.dot:hover {
    background-color: var(--secondary-color);
}

/* Contact Section */
.contact-container {
    display: flex;
    
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.contact-info,
.contact-form {
    background-color: white;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: var(--space-2);
}

.contact-details {
    margin-top: var(--space-2);
}

.contact-item {
    display: flex;
    margin-bottom: var(--space-2);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: var(--space-2);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    margin-top: var(--space-2);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-1);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-family: var(--body-font);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

/* Footer */
#footer {
    background-color: var(--neutral-900);
    color: white;
    padding-top: var(--space-5);
}

.footer-content {
    display: flex;
    justify-content: center;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-content h3 {
    color: white;
    margin-bottom: var(--space-2);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-about{
    max-width: 400px;
}

.footer-about p {
    color: var(--neutral-400);
}

.footer-links ul,
.footer-services ul {
    padding-left: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-services a {
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--neutral-400);
    margin-bottom: var(--space-2);
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex-grow: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.footer-newsletter button {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.footer-bottom {
    padding: var(--space-2) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--neutral-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--neutral-400);
    margin-left: var(--space-2);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-5px);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}



@media (min-width: 2000px) {
    :root{
        line-height: 30;
    }
    body{
        font-size: 1.5rem;
    }    
    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    .project-category{
        font-size: 30rem;
    }
    
}

@media(min-width: 2500px){
    body{
        font-size: 2rem;
    }


    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    h4 {
        font-size: 1.5rem;
    }
    #texts{
        font-size: 2.5rem;
    }
    #big-texts{
        font-size: 5rem;
    }
    .project-category{
        font-size: 1.5rem;
    }


    .container {
        max-width: 2000px; 
    }
}


@media(min-width: 3000px){
    body{
        font-size: 3rem;
    }


    h1 {
        font-size: 7rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 3rem;
    }

    h4 {
        font-size: 2rem;
    }
    #texts{
        font-size: 3rem;
    }
    #big-texts{
        font-size: 7rem;
    }
    .section-subheading{
        font-size: 3rem;
    }

    .service-card{
        padding: 100px;
    }
    .footer-text{
        font-size: 1.95rem;
    }
    .project-category{
        font-size: 2rem;
    }


    

    .container {
        max-width: 3000px; 
    }
}