/* Variables and global styles */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --background-light: #ffffff;
    --background-dark: #121212;
    --text-dark: #f5f5f5;
    --text-dark-light: #aaa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --section-transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); /* Faster transitions */

    /* Portfolio Blob Colors RGB values for rgba usage */
    --color-6c63ff-rgb: 108, 99, 255;
    --color-1a73e8-rgb: 26, 115, 232;
    --color-ff5252-rgb: 255, 82, 82;
    --color-2ca58d-rgb: 44, 165, 141;
    --color-9c27b0-rgb: 156, 39, 176;
    --color-fb8c00-rgb: 251, 140, 0;

    /* Mobile viewport height fix (set by JS) */
    --vh: 1vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
}

body.dark-mode {
    color: var(--text-dark);
    background-color: var(--background-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 1rem;
}

.primary {
    background-color: var(--primary-color);
    color: white;
}

.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-light);
}

body.dark-mode .section-intro {
    color: var(--text-dark-light);
}

/* Page sectioning for smooth scrolling */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent partial scrolling between sections */
    overflow-y: hidden;
}

/* Section active states */
section.active {
    transform: translateY(0) !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* Enhanced section content transitions */
section .container {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.2s;
}

section.active .container {
    opacity: 1;
    transform: translateY(0);
}