/* Digital Ascendancy - Main Stylesheet
   ===================================== */

/* Reset and Base Styles
   ===================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables / Color Scheme
   ============================ */
:root {
    --primary-dark: #2c3e50;
    --primary-blue: #3498db;
    --accent-cyan: #00bcd4;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-gray: #6c757d;
    --border-light: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 4px 15px rgba(52, 152, 219, 0.3);
    --shadow-button-hover: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* Typography
   ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

/* Header and Navigation
   ===================== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styles
   =========== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.node {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
}

.node:nth-child(1) { top: 0; left: 0; }
.node:nth-child(2) { top: 15px; left: 15px; }
.node:nth-child(3) { top: 30px; left: 30px; }
.node:nth-child(4) { top: 15px; right: 0; }

.connector {
    position: absolute;
    background-color: var(--primary-dark);
    transform-origin: left center;
}

.connector:nth-child(5) {
    width: 20px;
    height: 3px;
    top: 5px;
    left: 10px;
    transform: rotate(45deg);
}

.connector:nth-child(6) {
    width: 20px;
    height: 3px;
    top: 20px;
    left: 25px;
    transform: rotate(45deg);
}

.connector:nth-child(7) {
    width: 25px;
    height: 3px;
    top: 20px;
    right: 10px;
    transform: rotate(-45deg);
}

.logo-text {
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--primary-blue);
}

/* Navigation Links
   =============== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

/* Main Content Areas
   ================== */
main {
    margin-top: 80px;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section
   ============ */
.hero {
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Section Styles
   ============== */
.section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.page-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Cards and Grids
   =============== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card,
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.resource-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.resource-icon,
.icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.resource-card h3,
.card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.resource-card p,
.card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Buttons
   ======= */
.btn,
.cta-button,
.submit-button,
.email-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-button);
}

.btn:hover,
.cta-button:hover,
.submit-button:hover,
.email-button:hover {
    background-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.btn-secondary {
    background-color: var(--text-gray);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Forms
   ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Page Specific
   ==================== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info,
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h2,
.contact-form h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.info-text h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.info-text a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.info-text a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Footer
   ====== */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 5%;
    margin-top: auto;
}

footer p {
    opacity: 0.8;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Utility Classes
   =============== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--primary-dark); }
.bg-primary { background-color: var(--primary-blue); }

.text-gray { color: var(--text-gray); }
.text-primary { color: var(--primary-blue); }
.text-dark { color: var(--primary-dark); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Animations
   ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design
   ================ */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    /* Typography */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title,
    .page-title {
        font-size: 2rem;
    }
    
    /* Grids */
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Spacing */
    .section {
        padding: 3rem 5%;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    nav {
        padding: 0.75rem 3%;
    }
    
    .hero {
        padding: 3rem 3%;
    }
    
    .container {
        padding: 0 3%;
    }
}

/* Print Styles
   ============ */
@media print {
    header, footer {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    .no-print {
        display: none;
    }
}