/* 
   Alex Leroy Alexander - Main Stylesheet
   Modern, responsive design with SEO optimizations
*/

/* Base Styles and CSS Reset */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #2c3e50;
    --accent-color: #00d2ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #f8f9fa;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem for easy calculations */
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 4rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8rem;
    height: 0.4rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
}

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

a:hover {
    color: var(--accent-color);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 10rem 0;
}

section:nth-child(even) {
    background-color: rgba(242, 245, 247, 0.8);
}

.btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.6rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
}

.btn.primary:hover {
    box-shadow: 0 7px 15px rgba(58, 123, 213, 0.4);
    transform: translateY(-3px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
}

.logo img {
    margin-right: 1rem;
}

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

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

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.6rem;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 2.4rem;
    position: relative;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 0.3rem;
    width: 100%;
    background: var(--dark-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 1rem;
}

.menu-toggle span:nth-child(3) {
    top: 2rem;
}

.menu-toggle.active span:nth-child(1) {
    top: 1rem;
    transform: rotate(135deg);
}

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

.menu-toggle.active span:nth-child(3) {
    top: 1rem;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(42, 67, 101, 0.9), rgba(44, 62, 80, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="%233a7bd5" opacity="0.1"/><circle cx="25" cy="25" r="20" fill="%2300d2ff" opacity="0.05"/><circle cx="75" cy="75" r="20" fill="%2300d2ff" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.expertise-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.expertise-icon {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.project-tech span {
    background-color: rgba(58, 123, 213, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Entertainment Section */
.entertainment {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="%233a7bd5" opacity="0.1"/><path d="M0 50 L100 50" stroke="%2300d2ff" stroke-width="1" opacity="0.05"/><path d="M50 0 L50 100" stroke="%2300d2ff" stroke-width="1" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.resource-item {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.resource-links {
    list-style-type: none;
    margin-top: 2rem;
}

.resource-links li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.resource-links li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.resource-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.resource-links a:hover {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="%233a7bd5" opacity="0.1"/><circle cx="25" cy="25" r="20" fill="%2300d2ff" opacity="0.05"/><circle cx="75" cy="75" r="20" fill="%2300d2ff" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
}

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

.contact-form {
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.6rem;
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item svg {
    margin-right: 1.5rem;
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 6rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo p {
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-nav h4,
.footer-social h4 {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.footer-nav ul li {
    margin-bottom: 1.2rem;
}

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

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

.social-icons {
    display: flex;
    gap: 2rem;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Open Graph Image */
.og-image {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3.2rem;
    }
    
    section {
        padding: 8rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 8rem;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .expertise-grid,
    .projects-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero {
        padding-top: 5rem;
        height: auto;
        min-height: 100vh;
    }
}
