/* Base Styles */
:root {
    --primary-colour: #4a6bff;
    --secondary-colour: #6c63ff;
    --accent-colour: #ff6584;
    --dark-colour: #2d3748;
    --light-colour: #f7fafc;
    --text-colour: #4a5568;
    --heading-colour: #2d3748;
    --foundation-colour: #4299e1;
    --core-tech-colour: #68d391;
    --agent-dev-colour: #f687b3;
    --code-bg-colour: #edf2f7;
    --info-bg-colour: #ebf8ff;
    --info-border-colour: #90cdf4;
    --tip-bg-colour: #f0fff4;
    --tip-border-colour: #9ae6b4;
    --highlight-bg-colour: #fffaf0;
    --highlight-border-colour: #fbd38d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-colour);
    background-color: var(--light-colour);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-colour);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

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

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.8rem;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-colour);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--secondary-colour);
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-colour);
}

nav ul {
    display: flex;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

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

nav ul li a {
    color: var(--dark-colour);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-colour);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-colour), var(--secondary-colour));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Overview Section */
.overview {
    padding: 5rem 0;
    text-align: center;
}

.overview h2 {
    margin-bottom: 2rem;
}

.phases {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.phase {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.phase-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.foundation-icon {
    background-color: var(--foundation-colour);
}

.core-tech-icon {
    background-color: var(--core-tech-colour);
}

.agent-dev-icon {
    background-color: var(--agent-dev-colour);
}

/* Phase Sections */
.phase-section {
    padding: 5rem 0;
}

.foundation-phase {
    background-color: rgba(66, 153, 225, 0.08);
}

.core-tech-phase {
    background-color: rgba(104, 211, 145, 0.08);
}

.agent-dev-phase {
    background-color: rgba(246, 135, 179, 0.08);
}

.phase-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.phase-header .phase-icon {
    margin: 0 1.5rem 0 0;
}

.phase-title h2 {
    margin-bottom: 0.5rem;
}

.topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.topic {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.topic h3 {
    margin-bottom: 1rem;
}

.topic p {
    margin-bottom: 1.5rem;
}

/* Resources Section */
.resources-section {
    padding: 5rem 0;
    background-color: var(--dark-colour);
    color: white;
}

.resources-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

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

.resource-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.resource-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.resource-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.resource-card .btn {
    background-color: transparent;
    border: 1px solid white;
    margin-top: 1rem;
}

.resource-card .btn:hover {
    background-color: white;
    color: var(--dark-colour);
}

/* Footer */
footer {
    background-color: var(--dark-colour);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: white;
}

/* Content Page Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-colour), var(--secondary-colour));
    color: white;
}

.section-header h1 {
    color: white;
    font-size: 2.5rem;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subsection {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}

.subsection h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-colour);
}

.subsection h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.info-card, .tip-card, .highlight-box {
    border-left-width: 4px;
    border-left-style: solid;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
}

.info-card {
    background-color: var(--info-bg-colour);
    border-color: var(--info-border-colour);
}

.tip-card {
    background-color: var(--tip-bg-colour);
    border-color: var(--tip-border-colour);
}

.highlight-box {
    background-color: var(--highlight-bg-colour);
    border-color: var(--highlight-border-colour);
}

.info-card h4, .tip-card h4, .highlight-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

pre {
    background-color: var(--code-bg-colour);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.5;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: var(--code-bg-colour);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--dark-colour);
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

table th, table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

table th {
    background-color: var(--primary-colour);
    color: white;
    font-weight: 600;
    border-bottom-width: 2px;
    border-bottom-color: var(--secondary-colour);
}

table tr:nth-child(even) td {
    background-color: var(--light-colour);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: #e2e8f0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .phase-header {
        flex-direction: column;
        text-align: center;
    }
    
    .phase-header .phase-icon {
        margin: 0 auto 1rem;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .phase, .topic {
        min-width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
}
