/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

/* Reset and Base Styles */
:root {
    --accent-color: #C628FF;
    --accent-dark: #9605c7;
    --accent-light: #e278ff;
    --dark-bg: #0e0b14;
    --dark-surface: #1a1625;
    --text-light: #f5f5f5;
    --text-dim: #b3b3b3;
    --grid-gap: clamp(1rem, 2vw, 2rem);
    --section-padding: clamp(2rem, 5vw, 4rem);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --sidebar-width: 220px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 1rem;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

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

a:hover, a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Layout */
.grid-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Sidebar Navigation */
.sidebar {
    background-color: var(--dark-surface);
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.logo {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.sidebar nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 1.5rem;
}

.sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar a:hover, .sidebar a:focus {
    text-decoration: none;
    border-left: 3px solid var(--accent-color);
    color: var(--accent-light);
    background-color: rgba(198, 40, 255, 0.1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark-bg), var(--dark-surface));
    z-index: -2;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(198, 40, 255, 0) 70%);
    opacity: 0.2;
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(198, 40, 255, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* CTA Button with animated border */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    background-color: var(--accent-color);
    border: none;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition);
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--accent-dark);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 255, 0.4);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-light), var(--accent-dark), var(--accent-color));
    z-index: -1;
    background-size: 300% 300%;
    animation: borderAnimation 4s linear infinite;
    border-radius: calc(var(--border-radius) + 2px);
}

/* Hexagon Feature Cards */
.hexagon-section {
    position: relative;
}

.hexagon-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--dark-bg);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    transform: translateY(-49px);
}

.hexagon-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--dark-bg);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: translateY(49px);
}

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

.feature-card {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

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

.hexagon-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.hexagon-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.hexagon-icon.large {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.hexagon-icon.large i {
    font-size: 3rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-dark));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    counter-increment: timeline-counter;
}

.timeline-item::before {
    content: counter(timeline-counter);
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border: 4px solid var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: var(--text-light);
}

/* Portfolio Scroll */
.portfolio-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 300px;
    gap: var(--grid-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--dark-surface);
    padding: 1rem 0;
}

.portfolio-scroll::-webkit-scrollbar {
    height: 8px;
}

.portfolio-scroll::-webkit-scrollbar-track {
    background: var(--dark-surface);
    border-radius: 4px;
}

.portfolio-scroll::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.portfolio-item {
    scroll-snap-align: start;
    background-color: var(--dark-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.portfolio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.portfolio-item h3, .portfolio-item p {
    padding: 0 1rem;
}

.portfolio-item h3 {
    margin-top: 1rem;
}

.portfolio-item p {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--grid-gap);
    background-color: var(--dark-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info {
    padding: 2rem;
}

.contact-form {
    padding: 2rem;
    background-color: rgba(198, 40, 255, 0.05);
    position: relative;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Thank You Message */
.thank-you-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: rgba(198, 40, 255, 0.05);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s ease forwards;
}

.thank-you-message h3 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 3rem var(--section-padding);
    background-color: var(--dark-surface);
    margin-top: 3rem;
}

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

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

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Placeholder Page Styles */
.placeholder-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-content {
    max-width: 600px;
    padding: 3rem;
    background-color: var(--dark-surface);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.placeholder-content .cta-button {
    margin-top: 2rem;
}

/* Animations */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.2);
        opacity: 0.1;
    }
}

@keyframes borderAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    
    .logo {
        margin: 0 1rem 0 0;
    }
    
    .sidebar nav {
        flex-direction: row;
    }
    
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar li {
        margin: 0 0.5rem;
    }
    
    .sidebar a {
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar a:hover, .sidebar a:focus {
        border-left: none;
        border-bottom: 3px solid var(--accent-color);
    }
    
    main {
        padding-top: 70px; /* Account for fixed sidebar */
    }
    
    .hero-section {
        height: calc(100vh - 70px);
    }
    
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        left: -30px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
} 