/* 
* TeknoSolve Main CSS
* Reusable style components for the entire website
*/

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

:root {
    --primary-color: #5d3fd3;
    --secondary-color: #2d1b69;
    --dark-bg: #12092a;
    --light-bg: #f4f5f7;
    --white: #ffffff;
    --text-color: #333333;
    --light-text: #666666;
    --card-bg: #f9f9fd;
    --card-dark-bg: #1e1342;
    --transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

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

ul, ol {
    list-style: none;
}

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

iframe {
    border: 0;
}

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

section {
    padding: 80px 0;
}

/* ===== Utilities ===== */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

/* ===== Header ===== */
.header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero {
    background-color: var(--dark-bg);
    color: var(--white);
    background-image: linear-gradient(rgba(18, 9, 42, 0.85), rgba(18, 9, 42, 0.85)), 
                      url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 160px 0 100px;
    text-align: center;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn-primary {
    margin-top: 1rem;
}

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

.services-difference-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.content-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Approach Section ===== */
.approach {
    background-color: var(--light-bg);
    text-align: center;
}

.approach h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.approach-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.approach-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: var(--transition);
    height: 100%;
}

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

.approach-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.approach-card p {
    color: var(--text-color);
}

/* ===== Education Section ===== */
.education {
    background-color: var(--card-dark-bg);
    color: var(--white);
}

.education h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.education-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.education-item {
    margin-bottom: 2rem;
}

.education-item h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.education-item ul {
    padding-left: 20px;
}

.education-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.education-item li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
}

.services h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

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

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.service-card p {
    color: var(--white);
    opacity: 0.9;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--light-bg);
    text-align: center;
}

.testimonials h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: var(--transition);
    height: 100%;
}

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

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-card p {
    color: var(--text-color);
    font-style: italic;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--white);
    text-align: center;
}

.contact h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.contact-content {
    text-align: left;
}

.map {
    margin-bottom: 2rem;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.office {
    margin-bottom: 2rem;
}

.office h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.office p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    margin-left: 1.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .approach-content, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--secondary-color);
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-item {
        margin: 0 0 20px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services-difference-content {
        grid-template-columns: 1fr;
    }

    .content-image {
        order: -1;
    }

    .approach-content, .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 1.5rem;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }
}