/* --- CSS Variables --- */
:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-slate: #ccd6f6;
    --slate: #8892b0;
    --white: #e6f1ff;
    --accent-color: #64ffda;
    --font-sans: 'Manrope', sans-serif;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-navy);
    color: var(--slate);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Header "Pill" Navigation --- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 2rem;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 95%;
    max-width: 800px;
    background: rgba(17, 34, 64, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 1rem;
    color: var(--slate);
    transition: color 0.2s ease-in-out;
}

.main-nav a:hover {
    color: var(--white);
}

.nav-cta {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background-color: var(--accent-color);
    color: var(--dark-navy);
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.2s ease;
    border: none;
}

.nav-cta:hover {
    transform: scale(1.05);
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-panel {
    display: none;
}

/* --- Reusable Components --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-tagline {
    display: block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center !important;
}

.section-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(150deg, var(--dark-navy), var(--navy));
    text-align: center;
    padding: 8rem 0 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 750px;
    padding: 0 2rem;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-cta {
    background-color: var(--accent-color);
    color: var(--dark-navy);
    border-color: var(--accent-color);
}

.primary-cta:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.secondary-cta {
    color: var(--accent-color);
    background-color: transparent;
}

.secondary-cta:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* --- About Section --- */
.about-section {
    padding: 6rem 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-description-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.about-item h3 {
    color: var(--light-slate);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-item p {
    line-height: 1.6;
}

.about-skills-content h3 {
    color: var(--light-slate);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    text-align: left;
}

.skills-list li {
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.skills-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.2rem;
    top: -2px;
    

}

/* --- Process Section --- */
.process-section {
    padding: 6rem 0;
    background: linear-gradient(150deg, var(--dark-navy), var(--navy));
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.process-card {
    background-color: var(--navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    text-align: center;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.process-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-card p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 6rem 0;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.portfolio-item {
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
}

.section-cta-container {
    margin-top: 4rem;
    text-align: center;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(150deg, var(--dark-navy), var(--navy));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.card-stars {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.25rem;
}

.card-stars svg {
    width: 20px;
    height: 20px;
    stroke: none;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.client-name {
    font-weight: 700;
    color: var(--light-slate);
    font-style: normal;
}




/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .section-title {
    margin-bottom: 1.5rem;
   
}

.contact-tagline {
    display: block;
    margin-left: -400px;
  }
  

.contact-info p {
    line-height: 1.6;
    max-width: 450px;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-slate);
    transition: color 0.2s ease-in-out;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link svg {
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-slate);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form select {
   
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364ffda' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.contact-form button {
    align-self: flex-start;
}


/* --- Footer --- */
.site-footer {
    padding: 4rem 0 2rem;
    background-color: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.footer-about p {
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--slate);
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--slate);
    transition: color 0.2s ease-in-out;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--slate);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* --- General Mobile Adjustments --- */
    .hero-title { font-size: 2.2rem; }
    .hero-description { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .about-layout { grid-template-columns: 1fr; }
    .about-description-content, .about-skills-content h3 { text-align: center; }

    /* MODIFICATION START: Vertically stack skills list on mobile */
    /* MODIFICATION START: Vertically stack skills list on mobile */
@media (max-width: 600px) {
    .skills-list { 
      display: grid;               /* make sure it’s grid */
      grid-template-columns: 1fr; /* 1 column, vertical stack */
      max-width: 280px;            /* width constraint */
      margin: 0 auto;              /* center horizontally */
      text-align: center;          /* center text inside items */
    }
    .skills-list li::before {
        color: var(--accent-color);
      /* hide the bullet/marker for cleaner look */
    }
  }

  /* Add this to your mobile styles */

.about-section {
    background-color: var(--navy);
}
  
    /* MODIFICATION END */
    
    .process-grid { grid-template-columns: 1fr; }

    /* MODIFICATION START: Center testimonial card content on mobile */
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card {
        text-align: center;
    }
    .card-stars {
        justify-content: center;
    }
    /* MODIFICATION END */
    
    /* --- Contact Section on Mobile --- */
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info { text-align: center; }
    .contact-info .section-tagline,
    .contact-info .section-title { text-align: center !important; }
    .contact-details { align-items: center; }
    .form-group {
        text-align: center;
    }
    .contact-form button {
        align-self: center;
    }
    .contact-form select {
        text-align: center;
        
    }

    /* --- Footer on Mobile --- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p {
        margin: 0 auto;
    }
    .footer-socials {
        justify-content: center;
    }

    /* --- Mobile Header --- */
    .main-nav, .nav-cta { display: none; }
    .mobile-nav-toggle {
        display: block; background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(204, 214, 246)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat;
        width: 2rem; height: 2rem; border: 0; z-index: 9999; cursor: pointer;
    }
    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(204, 214, 246)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
    }

    /* --- Mobile Nav Panel --- */
    .mobile-nav-panel {
        display: block;
        position: fixed;
        inset: 0;
        background: hsl(222, 47%, 11%, 0.95);
        -webkit-backdrop-filter: blur(1rem);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        z-index: 99;
    }
    .mobile-nav-panel[data-visible="true"] {
        transform: translateX(0%);
    }
    .mobile-nav-panel nav {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    .mobile-nav-panel ul { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
    .mobile-nav-panel a { font-size: 1.5rem; color: var(--white); }
    .mobile-nav-cta { margin-top: 1rem; padding: 0.75rem 2rem; background-color: var(--accent-color); color: var(--dark-navy); border: none; }
}