/*CSS VARIABLES & PRESET
Most efficient to use as you don't need to manually change the values of each class elements properties one by one 
*/
:root {
    --bg-color: #050509;
    --card-bg: #0f0f16; /* Slightly lighter for cards */
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --accent: #7f5af0;
    --accent-hover: #a855f7;
    --accent-light: #c4b5fd;
    --nav-bg: rgba(5, 5, 9, 0.85);
    --font-main: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}


/* Floating Orbs on background */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 10%;
    left: 10%;
    animation: float1 15s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-hover);
    top: 60%;
    right: 15%;
    animation: float2 18s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-light);
    bottom: 20%;
    left: 20%;
    animation: float3 20s ease-in-out infinite;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    top: 40%;
    right: 30%;
    animation: float4 16s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-40px, 40px) scale(0.95);
    }
    50% {
        transform: translate(40px, -40px) scale(1.1);
    }
    75% {
        transform: translate(-20px, -20px) scale(0.9);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, 30px) scale(1.15);
    }
    66% {
        transform: translate(-40px, -50px) scale(0.85);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-50px, 20px) scale(1.05);
    }
    50% {
        transform: translate(30px, -40px) scale(0.95);
    }
    75% {
        transform: translate(-20px, 50px) scale(1.1);
    }
}


/* section utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.accent-text {
    color: var(--accent);
}

/* NAVIGATION BAR elements*/
.navBar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(127, 90, 240, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 1rem;
}

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

/* Home Section */
.home {
    text-align: center;
    min-height: 100vh;
    padding-top: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
}

.btn-secondary {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    color: var(--bg-color);
    border-color: var(--accent-light);
    box-shadow: 0 4px 12px rgba(196, 181, 253, 0.3);
}

/*About me*/
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.text-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.text-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    text-align: center;
    max-width: 700px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-weight: 300;
    margin: 0;
}

.accent-word {
    color: var(--accent);
    font-weight: 400;
    transition: color 0.3s ease;
}

.accent-word:hover {
    color: var(--accent-hover);
}

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

.img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.image-content img,
.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--accent);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: block;
}

.image-content img:hover,
.profile-img:hover {
    transform: scale(1.05);
    border-color: var(--accent-light);
}

.roden-img {
    object-position: center 15%;
}

.img-label {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 700;
}

/* Skills */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category {
    text-align: center;
}

.category-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-chip {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
    background: rgba(127, 90, 240, 0.05);
}

.skill-chip:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
}

/* --- PROJECTS (NEW) --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(127, 90, 240, 0.2);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.card-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.card-tags span {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.project-link:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* --- GOALS --- */
.goals-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.goal-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(127, 90, 240, 0.2);
    border-radius: 8px;
    padding: 3rem;
    min-height: 220px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.goal-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.goal-icon {
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-icon-img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.goal-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.goal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* --- CONTACT --- */
.contact {
    text-align: center;
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
}

.contact-icons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-end;
}

.contact-icons-container {
    background-color: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.container-label {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
}

.icons-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}

.contact-icon {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(250deg);
}

.icon-text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
    word-break: break-word;
}

a.icon-text-link:hover {
    color: var(--accent);
}

.contact-form-container {
    background-color: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(127, 90, 240, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-main);
    resize: none;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form button {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    cursor: pointer;
    display: block;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 901px) {
    .icon-item {
        width: auto;
    }
    
    .icons-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .about-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .text-content p {
        text-align: left;
    }

    /* Projects Grid becomes 2 columns on desktop */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Goals Grid becomes 4 columns on desktop */
    .goals-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .icons-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .icon-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .text-content p {
        text-align: center;
        padding: 0 1rem;
    }
    
    .image-content {
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-content img,
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .contact-icons-wrapper {
        width: 100%;
    }
    
    .contact-icons-container {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form button {
        max-width: none;
        width: 100%;
    }
    
    .goals-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .goal-item {
        padding: 2rem;
        min-height: auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .section {
        padding: 2.5rem 0;
        min-height: auto;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .text-content p {
        font-size: 1rem;
        padding: 0 0.5rem;
        text-align: center;
    }
    
    .image-content img,
    .profile-img {
        width: 120px;
        height: 120px;
        max-width: 100%;
    }
    
    .img-label {
        font-size: 0.8rem;
    }
    
    .skills-grid {
        gap: 0.75rem;
    }
    
    .skill-chip {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-desc {
        font-size: 0.95rem;
    }
    
    .goals-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .goal-item {
        padding: 1.5rem;
        min-height: auto;
        width: 100%;
    }
    
    .goal-title {
        font-size: 1.25rem;
    }
    
    .goal-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .contact-icons-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .container-label {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .contact-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
}
