/*
Theme Name: Sophia Portfolio
Theme URI: https://sophiaandrianopoulos.com
Description: Professional portfolio theme for Sophia Andrianopoulos
Version: 1.0.0
Author: Sophia Andrianopoulos
License: GPL v2 or later
Text Domain: sophia-portfolio
Domain Path: /languages
*/

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

:root {
    --deep-navy: #0a1628;
    --slate-blue: #1e3a5f;
    --steel: #4a5f7a;
    --ice-blue: #a8c5e0;
    --cream: #f5f1e8;
    --gold: #d4a574;
    --accent: #c85a54;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--cream);
    color: var(--deep-navy);
    line-height: 1.7;
    overflow-x: hidden;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--cream) 80%, transparent);
    z-index: 1000;
    animation: slideDown 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-navy);
    letter-spacing: -0.5px;
}

nav a {
    margin-left: 2.5rem;
    color: var(--steel);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(168, 197, 224, 0.15) 0%, transparent 70%);
    animation: float 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s both;
}

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

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1rem;
    font-weight: 300;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--deep-navy);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--steel);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.7s both;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--deep-navy);
    color: var(--cream);
    border: 2px solid var(--deep-navy);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--slate-blue);
    transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--deep-navy);
    border: 2px solid var(--steel);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Section Styling */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--deep-navy);
    letter-spacing: -1px;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--ice-blue), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--cream);
}

.timeline-header {
    margin-bottom: 1rem;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.1rem;
    color: var(--slate-blue);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.date {
    font-size: 0.9rem;
    color: var(--steel);
    font-style: italic;
}

.timeline-content ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--steel);
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 3px solid var(--gold);
}

.skill-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.18);
}

.skill-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--steel);
    line-height: 1.8;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--ice-blue);
    color: var(--deep-navy);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Education Section */
.education-card {
    background: white;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.education-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.education-card .degree {
    font-size: 1.1rem;
    color: var(--deep-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-card .year {
    color: var(--deep-navy);
    font-style: italic;
}

.education-card p {
    color: var(--deep-navy);
}

/* Contact Section */
.contact-section {
    background: var(--deep-navy);
    color: var(--cream);
    text-align: center;
}

.contact-section .section-title {
    color: var(--cream);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--ice-blue);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 2px solid var(--ice-blue);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-link:hover {
    background: var(--ice-blue);
    color: var(--deep-navy);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--deep-navy);
    color: var(--ice-blue);
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin-left: 1.5rem;
    }

    nav a:first-child {
        margin-left: 0;
    }

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

    .btn {
        text-align: center;
    }

    section {
        padding: 5rem 5%;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.4rem;
    }
}

/* Smoother Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}
