/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --teal-light: #48D1CC;
    --teal-dark: #00A39A;
    --bg-color: #F7FEFE;
    --text-color: #343a40;
    --heading-color: #2c3e50;
    --card-bg: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --border-radius: 15px;
}

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

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--heading-color);
}

a {
    text-decoration: none;
    color: var(--teal-dark);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--teal-light);
}

.container {
    max-width: 1140px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(15deg);
}

header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header ul li {
    margin-left: 30px;
}

header ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #e6fcfb 0%, #f7fefe 100%);
    text-align: center;
    padding: 120px 0;
}

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

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #5f6c7b;
}

/* --- GENERAL SECTION STYLING --- */
.apps-section, .philosophy-section, .about-snippet, .tech-stack-section {
    padding: 80px 20px;
    text-align: center;
}

.section-subtitle {
    color: #777;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

/* --- APPS SECTION --- */
.app-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.category {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.category i {
    color: var(--teal-dark);
    margin-bottom: 20px;
}

.category h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* --- PHILOSOPHY SECTION --- */
.philosophy-section {
    background: linear-gradient(135deg, #e6fcfb 0%, #f7fefe 100%);
    padding: 80px 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.philosophy-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 28px;
    text-align: center;
}

.philosophy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-item:last-child {
    border-bottom: none;
}

.philosophy-icon {
    background: rgba(72, 209, 204, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Center icons for grid cards */
.philosophy-grid .philosophy-icon {
    margin: 0 auto 12px auto;
}

.philosophy-icon i {
    color: var(--teal-dark);
    font-size: 1.5rem;
}

.philosophy-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: var(--heading-color);
}

.philosophy-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Hover effect for philosophy items */
.philosophy-item:hover .philosophy-icon {
    background: rgba(72, 209, 204, 0.2);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.philosophy-item:hover h4 {
    color: var(--teal-dark);
    transition: color 0.3s ease;
}

/* Elevation on hover for individual philosophy cards */
.philosophy-grid .philosophy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 44px 0 rgba(31, 38, 135, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* --- TECH STACK SECTION --- */
.tech-stack-section {
    background: linear-gradient(135deg, #e6fcfb 0%, #f7fefe 100%);
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.tech-icons i {
    font-size: 4rem;
    color: #ced4da;
    transition: color 0.3s ease, transform 0.3s ease;
}

.tech-icons i:hover {
    color: var(--teal-light);
    transform: scale(1.1);
}

/* --- ABOUT SNIPPET --- */
.about-snippet {
    background-color: #fff;
}

.about-snippet p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    background: #fff;
    padding: 25px 0;
    border-top: 1px solid #e7e7e7;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-links li {
    margin: 0 15px;
}

.social-icons a {
    margin-left: 15px;
    color: var(--text-color);
    font-size: 1.3rem;
}

/* --- INNER PAGES (ABOUT, CONTACT, LEGAL) --- */
.page-header {
    background: var(--teal-dark);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
}

.about-content, .contact-section, .legal-content {
    padding: 40px 20px;
}

.about-main ul li::before {
    color: var(--teal-dark);
}

/* --- CONTACT PAGE --- */
.contact-button-container {
    text-align: center;
    padding: 60px 20px;
}

.contact-btn {
    display: inline-block;
    font-size: 1.2rem;
    padding: 15px 30px;
    background: var(--teal-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 163, 154, 0.3);
}

.contact-btn:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 154, 0.4);
}

.contact-note {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    header .container {
        flex-direction: column;
    }

    header ul {
        margin-top: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin: 1rem 0;
    }

    .about-content, .contact-section {
        grid-template-columns: 1fr;
    }
}