/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #FD545D;
    --secondary: #5081A1;
    --accent: #5081A1;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --transition: all 0.3s ease;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-accent:hover {
    background-color: #d81159;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Header - Mobile First */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

.logo {
    justify-self: start;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    z-index: 1002;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

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

/* .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    gap: 20px;
    justify-content: center;
    z-index: 1000;
} */

/* Nav (center column) */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    transition: var(--transition);
}

.nav-menu.active {
    left: 0;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    padding: 10px 15px;
}

.nav-link:hover {
    color: var(--primary);
}

/* Mobile toggle (hidden on desktop) */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    align-items: center;
    height: 100%;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1002;
}

/* .auth-buttons {
    display: none;
} */

/* Auth/button (right) */
.auth-buttons {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

/* Testimonials */
.testimonials {
    background-color: #f8f9fa;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

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

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.service-card p {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

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

.project-image {
    height: 180px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.project-desc {
    margin-bottom: 15px;
    color: var(--gray);
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.about-image {
    flex: 1;
    order: -1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.contact-info>p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.contact-form {
    flex: 1;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

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

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.footer-desc {
    color: #adb5bd;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.footer-link {
    color: #adb5bd;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
}

/* Scroll margin for section anchors */
#features-section,
#services-section,
#projects-section,
#about-section,
#contact-section {
    scroll-margin-top: 100px;
}

/* Highlight animation for section targets */
@keyframes highlight {
    0% {
        background-color: transparent;
    }

    20% {
        background-color: rgba(67, 97, 238, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

#features-section:target,
#services-section:target,
#projects-section:target,
#about-section:target,
#contact-section:target {
    animation: highlight 2s ease;
}

/* Auth Pages Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.auth-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 26px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error input {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e1e1;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    position: relative;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-link {
    color: #007bff;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-note {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
}

/* Admin Styles */
.admin-container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-dashboard h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.admin-actions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-actions h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--light) 100%);
    color: white;
    text-align: center;
    padding: 50px 0;
}

.blog-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.post-image {
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

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

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

.post-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent);
    gap: 12px;
}

/* Blog Post Styles */
.blog-post-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 0 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--gray);
}

.post-title-large {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.post-meta-large {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.post-meta-large span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-image-large {
    margin-bottom: 25px;
}

.post-image-large img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
}

.post-content-text h2 {
    color: var(--secondary);
    margin: 25px 0 12px;
    font-size: 1.5rem;
}

.post-content-text h3 {
    color: var(--secondary);
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.post-content-text p {
    margin-bottom: 15px;
}

.post-content-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.post-content-text li {
    margin-bottom: 8px;
}

.post-tags-large {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags-large h3 {
    margin-bottom: 12px;
    color: var(--secondary);
}

.post-navigation {
    text-align: center;
    margin-top: 30px;
}

/* Privacy Policy Styles */
.privacy-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 0 30px;
    text-align: center;
}

.last-updated {
    color: var(--gray);
    font-style: italic;
    font-size: 0.9rem;
}

.privacy-text {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-text h2 {
    color: var(--secondary);
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.5rem;
}

.privacy-text h3 {
    color: var(--secondary);
    margin: 25px 0 12px;
    font-size: 1.3rem;
}

.privacy-text p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--dark);
}

.privacy-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}


/* ==================== MEDIA QUERIES ==================== */

/* Mobile styles */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: auto auto;
        padding: 0 16px;
        gap: 15px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 20px;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
        justify-self: end;
    }

    /* Hide auth buttons in header on mobile */
    .auth-buttons {
        display: none;
    }

    /* Show auth buttons in mobile menu */
    .nav-menu .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .nav-menu .auth-buttons .btn {
        margin: 0 20px;
        text-align: center;
    }
}

/* Tablet and Small Desktop */
@media (min-width: 768px) {
    .section {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .features-grid,
    .testimonial-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-content {
        flex-direction: row;
    }

    .about-image {
        order: 0;
    }

    .about-feature {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .contact-content {
        flex-direction: row;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .footer-title {
        text-align: left;
    }

    .footer-links {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .post-meta-large {
        flex-direction: row;
        gap: 20px;
    }
}

/* Desktop and Large Screens */
@media (min-width: 992px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        padding: 20px 0;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        background-color: transparent;
        width: auto;
        box-shadow: none;
        padding: 0;
        justify-content: center;
    }

    .mobile-toggle {
        display: none;
    }

    .auth-buttons {
        display: flex;
        align-items: center;
        justify-self: end;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .features-grid,
    .testimonial-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* Large Desktop */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}