/* 
 * Styles for Eco-friendly Mobile App Studio
 * Theme: Eco-friendly E-commerce & Sustainable Apps
 */

/* ---- BASE STYLES ---- */
:root {
    --primary: #2EAD4D; /* Vivid eco-green */
    --primary-dark: #1c8a37;
    --primary-light: #a4eab8;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f8faf9;
    --bg-dark: #2c3e50;
    --white: #ffffff;
    --off-white: #f5f7f6;
    --padding: clamp(2rem, 5vw, 4rem);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 1rem;
    text-align: center;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification p {
    margin: 0;
    font-weight: 500;
}

.notification i {
    margin-right: 0.5rem;
}

.close-notification {
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo Black', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

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

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover, .btn:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--white);
    text-decoration: none;
}

section {
    padding: 5rem 0;
}

.section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Icon Styles */
.fas, .far, .fab, .fa {
    margin-right: 0.5rem;
    color: var(--primary);
}

.service-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* CSS-based Leaf Pattern */
.leaf-pattern {
    position: relative;
    background-color: var(--white);
}

.leaf-pattern:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: 
        radial-gradient(var(--primary) 10%, transparent 10%),
        radial-gradient(var(--primary) 10%, transparent 10%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: 1;
}

.leaf-pattern > .container {
    position: relative;
    z-index: 2;
}

/* ---- HEADER STYLES ---- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    padding-left: 28px;
}

.logo:before {
    content: "\f5b7"; /* Font Awesome leaf icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

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

.logo a:hover {
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover:after, nav ul li a:focus:after {
    width: 100%;
}

/* ---- HERO SECTION ---- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle, var(--primary-light) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content h1, .hero-content p {
    color: var(--white);
    max-width: 600px;
}

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

.hero-content .btn {
    background-color: var(--white);
    color: var(--primary);
    align-self: flex-start;
}

.hero-content .btn:hover {
    background-color: var(--off-white);
    color: var(--primary-dark);
}

.hero-image {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder styles */
.placeholder-image {
    background-color: var(--primary-light);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-align: center;
    padding: 2rem;
}

.placeholder-image i {
    margin-bottom: 1rem;
}

.placeholder-image p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* ---- SERVICES SECTION ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

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

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

/* ---- PROCESS SECTION ---- */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    counter-increment: timeline-counter;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: counter(timeline-counter);
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ---- PORTFOLIO SECTION ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-thumb {
    height: 200px;
    width: 200px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(46, 173, 77, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-thumb i {
    color: var(--primary-dark);
}

.portfolio-item h3 {
    margin: 1rem 1.5rem 0.5rem;
}

.portfolio-item p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* ---- CONTACT SECTION ---- */
.contact {
    background-color: var(--bg-light);
}

form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'IBM Plex Sans', sans-serif;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 173, 77, 0.2);
}

/* Thank You Message Styles */
.thank-you-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
    max-width: 90%;
    width: 500px;
    border-top: 4px solid var(--primary);
}

.thank-you-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.thank-you-message h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 1.5rem;
}

.thank-you-message button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.thank-you-message button:hover {
    background-color: var(--primary-dark);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- FOOTER STYLES ---- */
footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.company-info address {
    font-style: normal;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.company-desc {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav ul li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul li a:hover {
    color: var(--white);
}

footer .fas {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
    margin-right: 8px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ---- STATIC PAGES ---- */
.page-content {
    padding: 5rem 0;
    min-height: 60vh;
}

.placeholder-content {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
}

/* ---- RESPONSIVE STYLES ---- */
@media screen and (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 3rem var(--padding);
    }
    
    .hero-image {
        height: 50vh;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 1rem 0.5rem 0;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-item:before {
        left: -2.5rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
} 