/* Modernize Website Design */

/* --- General Styling --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #333;
    background-color: var(--bg-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    background: var(--header-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
header .container img {
    max-height: 40px;
    width: auto;
}
header nav a {
    text-decoration: none;
    color: var(--header-link-color);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}
header nav a:hover,
header nav a:focus {
    color: var(--header-link-hover-color);
    text-decoration: none;
    transform: translateY(-2px);
}
footer {
    background: var(--footer-bg);
    color: var(--footer-text-color);
    text-align: center;
    padding: 25px 0;
    margin-top: 80px;
    border-top: 1px solid var(--card-border-color);
}
footer a {
    color: var(--footer-link-color);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}
footer a:hover,
footer a:focus {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
}

/* --- Updated Styles --- */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f7fa, #c2e59d);
    text-align: center;
    padding: 15px 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 95%);
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero h1 {
    font-size: 4em;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-shadow: 2px 3px 4px rgba(255, 255, 255, 0.7);
    animation: fadeInUp 1s ease;
}
.hero .container a {
    display: block;
    margin-bottom: 10px; /* Optional: Adds some space between the elements */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero p {
    font-size: 1.25em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}
.hero .btn {
    background: #ff6f61;
    color: white;
    padding: 18px 35px;
    font-size: 1.4em;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite alternate, fadeInUp 1.4s ease;
    margin-top: 20px; /* add margin to the button */
}
.hero .btn:hover,
.hero .btn:focus {
    background-color: #e64a43;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}
.hero img{
    max-width: 90%;
    height: auto;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    animation: fadeIn 1.6s ease;
}

/* Services Section */
.services h2 {
    font-size: 3em;
    margin-bottom: 50px;
    text-align: center;
    color: #2c3e50;
    letter-spacing: -0.02em;
}
.service {
    background: white;
    border: none;
    padding: 35px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.service:hover,
.service:focus {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.service h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
}
.service p {
    font-size: 1.15em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}
.services .btn {
    margin-top: 30px;
    background: #00b0ff;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.services .btn:hover,
.services .btn:focus {
    background-color: #00869e;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Portfolio Section */
.portfolio {
    background: #f5f5f5;
    padding: 60px 0;
}
.portfolio h2 {
    font-size: 3em;
    margin-bottom: 50px;
    text-align: center;
    color: #2c3e50;
    letter-spacing: -0.02em;
}
.portfolio .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.project {
    background: white;
    border: none;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project:hover,
.project:focus {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.project h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
}
.project p {
    font-size: 1.15em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}
.project img {
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}
.project img:hover{
    transform: scale(1.04);
}


/* About Us Section */
.about {
    padding: 60px 0;
}
.about h2 {
    font-size: 3em;
    margin-bottom: 40px;
    color: #2c3e50;
    text-align: center;
    letter-spacing: -0.02em;
}
.about p {
    font-size: 1.25em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: center;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.about img {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}
.about .container p {
    margin-bottom: 10px; /* Add a small margin for spacing */
}

.about .container .btn {
    display: flex;
    margin-top: 0;
    background-color: #ff6f61; /* Fresh color for the button */
    color: white;
    padding: 12px 24px;
    font-size: 1.2em;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.about .container .btn:hover,
.about .container .btn:focus {
    background-color: #e64a43;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* Testimonials Section */
.testimonials {
    background: #f8f8f8;
    padding: 60px 0;
}
.testimonials h2 {
    font-size: 3em;
    margin-bottom: 50px;
    text-align: center;
    color: #2c3e50;
    letter-spacing: -0.02em;
}
.testimonial {
    background: white;
    border: none;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.testimonial:hover,
.testimonial:focus {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.testimonial p {
    font-size: 1.15em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial p:last-child {
    font-weight: bold;
    font-style: normal;
    text-align: right;
    color: #333;
}

/* Technologies Section */
.technologies {
    padding: 60px 0;
}
.technologies h2 {
    font-size: 3em;
    margin-bottom: 50px;
    text-align: center;
    color: #2c3e50;
    letter-spacing: -0.02em;
}
.technology {
    display: block;
    background-color: #e0e0e0;
    color: #333;
    padding: 18px;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.technology:hover,
.technology:focus {
    background-color: #b0bec5;
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Section */
.blog {
    padding: 60px 0;
    background: #f5f5f5;
}
.blog h2 {
    font-size: 3em;
    margin-bottom: 50px;
    text-align: center;
    color: #2c3e50;
    letter-spacing: -0.02em;
}
.blog article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.blog article h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}
.blog article p {
    font-size: 1.15em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}
.blog article a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}
.blog article a:hover,
.blog article a:focus {
    color: #004080;
    text-decoration: underline;
}

/* Call to Action Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.cta h2 {
    font-size: 3.5em;
    color: white;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: pulse 2s infinite alternate;
}

.cta p {
    font-size: 1.3em;
    color: #f0f8ff;
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /*max-width: 80%;*/
}
.cta .btn {
    background: white;
    color: #007bff;
    padding: 18px 40px;
    font-size: 1.5em;
    border-radius: 12px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
}
.cta .btn:hover,
.cta .btn:focus {
    background-color: #e0f7fa;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
    background: #222;
    color: #eee;
    text-align: center;
    padding: 30px 0;
    margin-top: 80px;
    border-top: 1px solid #444;
}
footer p {
    font-size: 0.95em;
    color: #aaa;
}
footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}
footer a:hover,
footer a:focus {
    color: white;
    text-decoration: underline;
}

/* ------------------------- */
/* --- Responsive Adjustments --- */
/* ------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .hero {
        padding: 100px 15px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .services h2,
    .portfolio h2,
    .about h2,
    .testimonials h2,
    .technologies h2,
    .blog h2,
    .cta h2 {
        font-size: 2.5em;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .cta {
        padding: 60px 15px;
    }
    .cta h2 {
        font-size: 2.5em;
    }
    .cta p {
        font-size: 1.1em;
    }
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 10px;
    }
    header nav a {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        padding: 80px 10px;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    .cta {
        padding: 50px 10px;
    }
    .cta h2 {
        font-size: 2.2em;
    }
    .cta p {
        font-size: 1em;
    }
    .btn {
        font-size: 1em;
        padding: 10px 20px;
    }
    footer {
        font-size: 0.9em;
    }
    header nav a{
        font-size: 0.9em;
    }
}
/* ========================================= */
/* Dark Theme Styles            */
/* ========================================= */

body.dark-theme {
  background-color: #121212; /* Standard dark background */
  color: #e0e0e0;           /* Light grey text for readability */
  /* Add transitions for smoother theme changes */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Links --- */
body.dark-theme a {
  color: #bb86fc; /* A common accent color for dark themes */
}

body.dark-theme a:hover,
body.dark-theme a:focus {
  color: #9e6adb; /* Slightly darker/different hover */
}

/* --- Header & Footer --- */
body.dark-theme header {
  background-color: #1f1f1f; /* Slightly lighter dark shade for header */
  border-bottom: 1px solid #333; /* Darker border */
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05); /* Subtle white shadow */
}

/* Adjust logo for dark theme if needed (e.g., if it has transparency issues) */
/* body.dark-theme header img { */
/* filter: brightness(0.9) contrast(1.1); */
/* } */

body.dark-theme footer {
  background-color: #1f1f1f;
  border-top: 1px solid #333;
  color: #aaaaaa; /* Lighter grey for footer text */
}

body.dark-theme footer a {
  color: #bb86fc;
}
body.dark-theme footer a:hover,
body.dark-theme footer a:focus {
  color: #9e6adb;
}

/* --- Buttons --- */
body.dark-theme .btn {
  background-color: #bb86fc;
  color: #121212; /* Dark text on light button */
  border: 1px solid #bb86fc;
}

body.dark-theme .btn:hover,
body.dark-theme .btn:focus {
  background-color: #9e6adb;
  border-color: #9e6adb;
  color: #121212;
}

/* Language & Theme Switcher Buttons */
body.dark-theme .language-switcher button {
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-theme .language-switcher button:hover,
body.dark-theme .language-switcher button:focus {
  background-color: #444;
  border-color: #777;
}

body.dark-theme .language-switcher button.active {
  background-color: #bb86fc;
  color: #121212;
  border-color: #bb86fc;
}

body.dark-theme #theme-switcher { /* Explicit style for theme switcher */
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}
body.dark-theme #theme-switcher:hover,
body.dark-theme #theme-switcher:focus {
  background-color: #444;
  border-color: #777;
}


/* --- Sections & Components --- */
body.dark-theme .service,
body.dark-theme .testimonial,
body.dark-theme .project,
body.dark-theme .technology,
body.dark-theme article { /* Style blog articles too */
  background-color: #1e1e1e; /* Card background */
  border: 1px solid #333;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.08); /* Subtle white shadow */
}

body.dark-theme .technology {
  color: #e0e0e0; /* Ensure text color is light */
}

body.dark-theme .technology:hover,
body.dark-theme .technology:focus {
    background-color: #333;
    border-color: #555;
}

/* Headings */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #f5f5f5; /* Slightly brighter white for headings */
}

/* Specific section adjustments if needed */
body.dark-theme .hero {
  /* Example: Maybe darken the hero background slightly more or less */
  /* background-color: #1a1a1a; */
}

body.dark-theme .cta { /* Call to Action section */
  background-color: #1f1f1f; /* Match header/footer */
}

/* Lists in About page */
body.dark-theme .values-list li {
    color: #e0e0e0; /* Ensure list items inherit correctly */
}
body.dark-theme .values-list strong {
    color: #f5f5f5; /* Make strong text stand out slightly */
}

/* Placeholder images - Optional: slightly dim bright placeholders */
body.dark-theme img[src*="placeholder"] {
  filter: brightness(0.85);
}

/* Sitemap List */
body.dark-theme .sitemap-list {
    /* Styles if needed, usually link styles cover this */
}
body.dark-theme .sitemap-list a {
    color: #bb86fc;
}
body.dark-theme .sitemap-list a:hover {
    color: #9e6adb;
}

/* Input fields / forms (if any are added later) */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme textarea {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}
body.dark-theme input[type="text"]:focus,
body.dark-theme input[type="email"]:focus,
body.dark-theme textarea:focus {
    border-color: #bb86fc;
    outline: none;
}


/* === THEME VARIABLES === */
:root {
    --bg-color: #ffffff;
    --header-bg: #ffffff;
    --header-link-color: #333;
    --header-link-hover-color: #007bff;

    --footer-bg: #f5f5f5;
    --footer-text-color: #888;
    --footer-link-color: #555;
    --footer-link-hover-color: #000;

    --card-border-color: #ddd;
    --text-color: #333;
    --accent-color: #007bff;
    --btn-bg: #ff6f61;
    --btn-hover-bg: #e64a43;
}

body.dark-theme {
    --bg-color: #121212;
    --header-bg: #1e1e1e;
    --header-link-color: #ddd;
    --header-link-hover-color: #90caf9;

    --footer-bg: #1a1a1a;
    --footer-text-color: #aaa;
    --footer-link-color: #bbb;
    --footer-link-hover-color: #fff;

    --card-border-color: #333;
    --text-color: #eee;
    --accent-color: #82b1ff;
    --btn-bg: #bb4430;
    --btn-hover-bg: #e57373;

    /* Visual Enhancements in Dark Mode Only */

    /* Backgrounds for dark-specific sections */
    .hero {
        background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    }
    .cta {
        background: linear-gradient(to right, #2b2b2b, #1e1e1e);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }
    .portfolio,
    .blog,
    .testimonials {
        background-color: #181818;
    }

    /* Cards */
    .service,
    .testimonial,
    .project {
        background-color: #222;
        border-color: #333;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    .technology {
        background-color: #2e2e2e;
        color: #ccc;
    }
    .technology:hover {
        background-color: #3e3e3e;
        color: #fff;
    }

    .blog article {
        border-bottom: 1px solid #333;
    }

    /* Optional: Better visuals for dark mode images */
    .about img,
    .hero img {
        filter: brightness(0.9) contrast(1.1);
    }
}

/* Apply theme-aware colors globally */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Add these rules where color was hardcoded */
.hero h1,
.hero p,
.services h2,
.portfolio h2,
.about h2,
.testimonials h2,
.technologies h2,
.blog h2,
.blog article h3,
.project h3,
.service h3,
.testimonial p:last-child {
    color: var(--text-color);
}

.service,
.project,
.testimonial {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--card-border-color);
}

.hero .btn,
.about .container .btn,
.services .btn,
.cta .btn {
    background-color: var(--btn-bg);
    color: white;
     display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
}

.hero .btn:hover,
.about .container .btn:hover,
.services .btn:hover,
.cta .btn:hover,
.hero .btn:focus,
.about .container .btn:focus,
.services .btn:focus,
.cta .btn:focus {
    background-color: var(--btn-hover-bg);
}

.blog article a {
    color: var(--accent-color);
}

.blog article a:hover,
.blog article a:focus {
    color: var(--header-link-hover-color);
}

footer,
header {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
}

footer a {
    color: var(--footer-link-color);
}

footer a:hover,
footer a:focus {
    color: var(--footer-link-hover-color);
}

/* Responsive and other layout styles unchanged */
