/* ====================================
   Arina Prylipko Portfolio - Styles
   Modern & Clean Design with Visible Depth
   ==================================== */

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

:root {
    /* Color Palette from Image */
    --color-primary: #896c6c;      /* Mørk mauve/rosa */
    --color-secondary: #e5beb5;    /* Lys pink/beige */
    --color-tertiary: #eee6ca;     /* Cream */
    --color-accent: #f5fae1;       /* Light cream/beige */

    /* Semantic Colors */
    --text-dark: #2d2d2d;
    --text-light: #666;
    --white: #ffffff;
    --shadow: rgba(137, 108, 108, 0.15);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ====================================
   Typography
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    position: relative;
    display: inline-block;
}

/* ====================================
   Navbar
   ==================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s var(--transition-smooth);
}

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

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ====================================
   Hero Section - Enhanced with Visible Circles
   ==================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-accent) 100%);
    padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Large visible circles - more prominent */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--color-secondary) 0%, rgba(229, 190, 181, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
    filter: blur(20px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(137, 108, 108, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 10s ease-in-out infinite reverse;
    filter: blur(25px);
}

/* Additional decorative elements - more visible */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(229, 190, 181, 0.4) 0%, rgba(229, 190, 181, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse-slow 4s ease-in-out infinite;
    filter: blur(15px);
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: var(--color-secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.6;
    animation: morph 6s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-40px) rotate(10deg) scale(1.05);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.6;
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg) scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s var(--transition-smooth);
}

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

/* Larger Profile Image with Enhanced Effects */
.profile-image {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: 0 30px 80px var(--shadow), 
                0 15px 40px rgba(137, 108, 108, 0.2);
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-smooth), 
                box-shadow var(--transition-smooth);
    animation: scaleIn 0.8s var(--transition-bounce);
    position: relative;
    z-index: 2;
}

/* Decorative ring around profile image */
.profile-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s;
}

.profile-image:hover::before {
    opacity: 0.5;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.profile-image:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 40px 100px var(--shadow), 
                0 20px 50px rgba(137, 108, 108, 0.3);
}

.hero-title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    animation: fadeInUp 1s 0.6s both;
}

/* ====================================
   Container & Sections
   ==================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
    animation: expandWidth 0.8s var(--transition-smooth);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* ====================================
   About Section
   ==================================== */

.about {
    background: var(--white);
    position: relative;
}

/* More visible decorative circle */
.about::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-accent) 0%, rgba(238, 230, 202, 0.5) 40%, transparent 70%);
    opacity: 0.7;
    filter: blur(40px);
    animation: float 15s ease-in-out infinite;
}

.about-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-light);
    line-height: 1.8;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-item {
    background: var(--color-accent);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow);
    background: var(--color-secondary);
}

.highlight-item i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-smooth);
}

.highlight-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

.highlight-item h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.highlight-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ====================================
   Stats Section
   ==================================== */

.stats {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* More visible circles in stats section */
.stats::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
    filter: blur(20px);
}

.stats::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 70%);
    border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(25px);
}

.stats .section-title {
    color: var(--white);
}

.stats .section-title::after {
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.8s var(--transition-smooth);
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ====================================
   Contact Section
   ==================================== */

.contact {
    background: var(--color-tertiary);
    position: relative;
}

/* More visible decorative element */
.contact::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary) 0%, rgba(229, 190, 181, 0.4) 40%, transparent 70%);
    opacity: 0.6;
    filter: blur(50px);
    animation: float 13s ease-in-out infinite reverse;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.6s var(--transition-smooth);
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: all var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s 0.4s both;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loading {
    position: relative;
    z-index: 1;
}

.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
    animation: slideIn 0.4s var(--transition-smooth);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ====================================
   Footer
   ==================================== */

.footer {
    background: var(--color-primary);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-links a:hover::before {
    width: 60px;
    height: 60px;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.social-links a:hover i {
    color: var(--color-primary);
}

.footer-text {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: calc(80px + var(--spacing-md)) var(--spacing-sm) var(--spacing-md);
    }

    .profile-image {
        width: 220px;
        height: 220px;
    }

    .hero::before,
    .hero::after {
        width: 450px;
        height: 450px;
    }

    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .nav-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }
}

/* ====================================
   Loading Animation
   ==================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, 
        var(--color-tertiary) 0%, 
        var(--color-secondary) 50%, 
        var(--color-tertiary) 100%);
    background-size: 1000px 100%;
}


/* ====================================
   Stats Disclaimer Styling
   ==================================== */

.stat-disclaimer {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

.stats-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    opacity: 0.9;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s var(--transition-smooth);
}

.stats-note i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stats-note {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .stat-disclaimer {
        font-size: 0.7rem;
    }
}
/* ====================================
   Enhanced Form Messages
   ==================================== */

.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: left;
    display: none;
    transition: all 0.4s var(--transition-smooth);
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    display: block;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    display: block;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.success-content,
.error-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.success-content i {
    font-size: 2rem;
    color: #28a745;
    animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-content i {
    font-size: 2rem;
    color: #dc3545;
}

.success-content strong,
.error-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.success-content p,
.error-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

@keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .success-content,
    .error-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .success-content i,
    .error-content i {
        font-size: 2.5rem;
    }
}