/* Root variables for colours and spacing */
:root {
    --primary-color: #00bcd4; /* teal accent */
    --primary-dark: #007b87; /* darker teal for safe hover */
    --secondary-color: #ff6f61; /* soft coral for highlights */
    --dark-bg: #0b0c10; /* deep navy for hero overlay */
    --light-bg: #f9f9fa; /* fallback */
    --page-bg: #f1f6f7; /* soft, easy-on-eyes page background */
    --card-bg: #fbfeff; /* slightly brighter than page but not harsh white */
    --card-border: rgba(10,12,14,0.04);
    --muted-shadow: 0 2px 8px rgba(10,12,14,0.035);
    --text-dark: #1f2933; /* dark grey for body text */
    --text-light: #e5e5e5; /* light grey for hero text */
    --max-width: 1100px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Global resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--page-bg); /* softer page background */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(241, 245, 246, 0.9); /* softer header backdrop */
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Navigation bar */
.navbar {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

/* Logo image */
.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

/* Trusted By section */
.social-proof .proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-proof .proof-item {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--muted-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.social-proof .proof-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(10,12,14,0.05);
}


.social-proof .proof-icon {
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.social-proof .proof-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.social-proof .proof-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Hamburger menu (mobile) */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 5px;
    transition: transform var(--transition-speed);
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background var(--transition-speed), color var(--transition-speed);
}

.nav-links li a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero section */
.hero {
    /* slightly taller banner for more presence */
    height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* slightly lighter overlay to keep contrast but reduce heaviness */
    background: rgba(0, 0, 0, 0.36);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.cta-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Sections */
.section {
    padding: 5rem 1rem;
    max-width: var(--max-width);
    margin: auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* About section */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-text {
    flex: 2 1 350px;
    line-height: 1.7;
}

.about-text p + p {
    margin-top: 1.2rem;
}

.about-stats {
    flex: 1 1 250px;
}

.about-stats ul {
    list-style: none;
    padding-left: 0;
}

.about-stats li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.about-stats strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--muted-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(10,12,14,0.05);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--muted-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(10,12,14,0.05);
}

.portfolio-note {
    margin-top: 1.5rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Give the portfolio section a subtle geometric background using our custom graphic */
.portfolio {
    background-image: url('images/pattern-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--muted-shadow);
    font-style: italic;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 10px;
}

.testimonial-card .client-name {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact */
.contact form {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
}

.contact button {
    align-self: flex-start;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.contact button:hover {
    background: var(--secondary-color);
}

/* Contact grid styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.contact-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--muted-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-decoration: none;
    color: var(--text-dark);
    /* Ensure all contact cards have equal dimensions */
    height: 150px;
    width: 180px;
    justify-content: center;
}

/* Ensure platform headings in contact grid stand out and reflect brand presence */
.contact-item strong {
    display: block;
    font-size: 1.1rem; /* larger than body text to emphasise platform names */
    font-weight: 700; /* bold for emphasis */
    margin-bottom: 0.1rem;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


/* Per-platform theme colours for contact text */
/* Platform-specific colour for the header text */
.contact-item.fiverr strong {
    color: #1dbf73;
}
.contact-item.upwork strong {
    color: #14a800;
}
.contact-item.freelancer strong {
    color: #29b2fe;
}
.contact-item.linkedin strong {
    color: #0a66c2;
}
.contact-item.googleplay strong {
    color: #3ddc84;
}
.contact-item.phone strong,
.contact-item.email strong,
.contact-item.location strong {
    color: var(--secondary-color);
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* CTA avatar styles */
.cta-avatar {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    transition: bottom 0.6s ease;
    cursor: pointer;
    z-index: 100;
}
.cta-avatar.hidden {
    bottom: -100px;
}
.cta-avatar.show {
    bottom: 80px;
}

/* Achievements section styling */
.achievements .badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievements .badge {
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--muted-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Titles inside badges */
.achievements .badge-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Why Choose Me section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--muted-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

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

.why-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        width: 200px;
        height: calc(100% - 60px);
        flex-direction: column;
        padding-top: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-speed);
        box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    }
    .nav-links li {
        margin-bottom: 1.5rem;
    }
    .menu-toggle:checked + .hamburger + .nav-links {
        transform: translateX(0);
    }
    .hamburger {
        display: flex;
    }
    .nav-links li a {
        color: var(--text-dark);
    }
}