/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* CSS Variables for Colors */
:root {
    --bg-color: #F5F5F5;
    --surface-color: #FFFFFF;
    --primary-text: #273F4F;
    --accent-color: #FE7743;
    --accent-text: #FFFFFF;
    --shadow-color: rgba(39, 63, 79, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--bg-color);
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 6rem 2rem;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Navigation */
header {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-text);
    text-decoration: none;
}

nav ul.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

nav ul.nav-links li {
    margin-left: 2.5rem;
}

nav ul.nav-links li a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002; /* Ensure hamburger is above menu */
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #fed2c2 100%);
    padding-top: 80px; /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* About Section */
.about {
    background-color: var(--surface-color);
}

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

.about-content h3 {
    margin-top: 1.5rem;
    color: var(--accent-color);
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(39, 63, 79, 0.15);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-card-content h3 a {
    text-decoration: none;
    color: var(--primary-text);
    transition: color 0.3s ease;
}

.project-card-content h3 a:hover {
    color: var(--accent-color);
}

.project-card-content p {
    color: #555;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--surface-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.testimonial-card .stars {
    color: #f7b731;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
}

/* Contact Section */
.contact {
    background-color: var(--primary-text);
    text-align: center;
    color: var(--bg-color);
}
.contact h2 {
    color: var(--bg-color);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-button, .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-button {
    background-color: var(--accent-color);
    color: var(--accent-text);
}

.contact-button:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    background-color: var(--surface-color);
    color: var(--primary-text);
}

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

/* Footer */
footer {
    background-color: var(--primary-text);
    color: #ccc;
    text-align: center;
    padding: 1.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 4rem 1.5rem; }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        background-color: var(--surface-color);
        height: 100vh;
        width: 60%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 15px var(--shadow-color);
        z-index: 1001; /* <-- THIS IS THE FIX: Higher than header */
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ADD THIS to your existing style.css file */

/* Navigation Controls */
.controls-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-color);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}

.lang-switcher span {
    color: #ccc;
}

.lang-btn {
    text-decoration: none;
    color: #aaa;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.1rem 0.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

/* In the @media screen and (max-width: 768px) section,
   add this to make the switcher look good on mobile */
@media screen and (max-width: 768px) {
    .controls-container {
        gap: 1rem;
    }
}






.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(39,63,79,0.08);
    margin-bottom: 2rem;
    border: 1px solid #EFEEEA;
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

h1, h2, h3, h4 {
    color: #273F4F;
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2, h3, h4 {
    font-weight: 600;
}

.text-muted {
    color: #7a7a7a;
}

.rounded-circle {
    margin-top: 10px;
    border-radius: 50%;
    border: 4px solid #FE7743;
    box-shadow: 0 2px 8px rgba(39,63,79,0.08);
}

.freelance-platforms .card {
    border: 2px solid #FE7743;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #EFEEEA;
}

.freelance-platforms .card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 24px rgba(39,63,79,0.12);
    border-color: #273F4F;
}

.freelance-platforms img {
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}

.freelance-platforms h4 {
    color: #FE7743;
    margin-top: 0.5rem;
}

.special-offer {
    background: linear-gradient(90deg, #FE7743 0%, #EFEEEA 100%);
    border: none;
    color: #273F4F;
}

.special-offer h3 {
    color: #273F4F;
}

.demo-subjects .badge {
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 1em;
    border-radius: 20px;
    margin: 0.2em;
    color: #fff;
    background: #273F4F;
    font-weight: 500;
}

.demo-subjects .bg-primary { background: #FE7743; }
.demo-subjects .bg-success { background: #273F4F; }
.demo-subjects .bg-info { background: #7AB2D3; }
.demo-subjects .bg-warning { background: #EFEEEA; color: #273F4F; border: 1px solid #273F4F; }
.demo-subjects .bg-danger { background: #000000; }



.btn {
    display: inline-block;
    background: #FE7743;
    color: #fff;
    padding: 0.8em 2em;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 1em;
}

.btn:hover, .btn:focus {
    background: #273F4F;
    color: #FE7743;
}

footer {
    background: #273F4F;
    color: #FE7743;
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 3rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
    .card-body {
        padding: 1rem;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}