/* ========================================
   AGEIDE IDEAS - MODERN RESPONSIVE WEBSITE
   Mobile-First CSS Architecture
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #1a1a2e;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #d1d5db;
}

a {
    color: #10b981;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #06d6a6;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Mobile: 320px - 480px */
@media (min-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Tablet: 768px - 1024px */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 2rem;
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    padding: 0.75rem 1rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 1.5rem;
    height: 0.2rem;
    background-color: var(--text-dark);
    transition: var(--transition);
    border-radius: 0.1rem;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Tablet Navigation */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
    }

    .nav-menu li {
        padding: 0;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.hero-graphic {
    position: relative;
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-shape {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Tablet Hero */
@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-content {
        flex: 1;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-graphic {
        flex: 1;
    }
}

/* Desktop Hero */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* ========================================
   SECTION STYLES
   ======================================== */

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #f3f4f6;
}

.section-subtitle {
    text-align: center;
    color: #d1d5db;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    background-color: #0f0f1e;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: #16213e;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #2d3a5c;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
}

.service-card h3 {
    color: #f3f4f6;
    margin-bottom: 1rem;
}

.service-card p {
    color: #d1d5db;
}

/* Tablet Services */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop Services */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background-color: #1a1a2e;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #f3f4f6;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: #d1d5db;
}

.about-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.about-list strong {
    color: #f3f4f6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Tablet About */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat {
        padding: 2.5rem;
    }
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
    background-color: #0f0f1e;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.portfolio-item {
    background-color: #16213e;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border: 1px solid #2d3a5c;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 12rem;
    background-size: cover;
    background-position: center;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    color: #f3f4f6;
}

.portfolio-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #d1d5db;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: #2d3a5c;
    color: #10b981;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tablet Portfolio */
@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .portfolio-image {
        height: 15rem;
    }
}

/* Desktop Portfolio */
@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog {
    background-color: #1a1a2e;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-card {
    background-color: #16213e;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #2d3a5c;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 12rem;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.blog-date {
    color: #9ca3af;
    font-weight: 600;
}

.blog-category {
    background-color: #2d3a5c;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
}

.blog-card h3 {
    margin-bottom: 1rem;
    color: #f3f4f6;
    line-height: 1.4;
}

.blog-card p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    flex: 1;
}

.read-more {
    color: #10b981;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    color: #06d6a6;
    transform: translateX(4px);
}

/* Tablet Blog */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .blog-image {
        height: 15rem;
    }
}

/* Desktop Blog */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Contact Form */
.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-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.contact-form .btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Tablet Contact */
@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: 2rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
    font-size: 0.9rem;
}

/* Tablet Footer */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

@media (max-width: 767px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 2.5rem 0;
    }
}

/* Smooth scroll for form submission feedback */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    nav, footer, .contact {
        display: none;
    }
}
