/* 
   DESIGN SYSTEM & VARIABLES 
   Reference: hsmkrt1996.com aesthetics
*/
:root {
    /* Color Palette */
    --color-blue: #4fc3f7;   /* Hero Blue */
    --color-green: #a7e9af;  /* About Green */
    --color-orange: #ffccbc; /* Projects Orange */
    --color-pink: #f8bbd0;   /* Contact Pink */
    
    --color-text-main: #1a1a1a;
    --color-text-light: #ffffff;
    --color-white: #ffffff;
    
    /* Typography */
    --font-display: 'Anton', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-blue); /* Initial BG */
    overflow-x: hidden;
    transition: background-color 0.8s ease; /* Smooth transition fallback */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* CUSTOM CURSOR */
.cursor-dot, 
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text-main);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for cursor */
body.hovering .cursor-outline {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference; /* Ensures visibility on all colors */
    color: white;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
}

.menu-items a {
    margin-left: 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.menu-items a:hover::after {
    width: 100%;
}

/* SECTIONS COMMON */
.section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 8rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* FLOATING CARDS */
.floating-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    z-index: 10;
    position: relative;
}

/* HERO SECTION */
.hero-section {
    align-items: center; /* Center horizontally */
}

.hero-bg-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 25vw; /* Massive responsive text */
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
    z-index: 0; /* Behind everything */
    pointer-events: none;
}

.hero-card {
    text-align: left;
}

.card-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.hero-card h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-card p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.scroll-indicator {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* ABOUT SECTION */
.about-section {
    align-items: flex-end; /* Push card to right */
}

.about-card h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skills-container {
    margin-top: 2rem;
}

.skills-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.skills-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item i {
    font-size: 3rem;
    color: var(--color-text-main);
    transition: color 0.3s;
}

/* Hover colors for specific icons */
.skill-item:hover i.devicon-php-plain { color: #777BB4; }
.skill-item:hover i.devicon-mysql-plain { color: #4479A1; }
.skill-item:hover i.devicon-javascript-plain { color: #F7DF1E; }
.skill-item:hover i.devicon-vuejs-plain { color: #4FC08D; }
.skill-item:hover i.devicon-nuxtjs-plain { color: #00C58E; }

.skill-item span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.skill-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

.text-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    height: 3rem;
    display: flex;
    align-items: center;
    border: 2px solid var(--color-text-main);
    padding: 0 0.5rem;
    border-radius: 5px;
}

/* PROJECTS SECTION */
.projects-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 0.8;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
}

.project-info .year {
    font-family: var(--font-heading);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.view-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s;
}

.view-btn:hover {
    transform: scale(1.05);
}

.project-image {
    flex: 1.5;
    height: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without stretching */
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    opacity: 0; /* Hide placeholder if image is present, or could remove from HTML */
    pointer-events: none;
}

/* PROFILE PICTURE */
.profile-pic-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-text-main);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.contact-card {
    text-align: center;
    padding: 5rem;
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 1rem;
}

.email-link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0;
    text-decoration: underline;
}

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

.social-links a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.social-links a i {
    font-size: 1.5rem;
}

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

.main-footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* BACKGROUND SHAPES */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: floatAnimation 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    top: -10%;
    right: -10%;
}

@keyframes floatAnimation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 50px); }
}

/* IMPROVED PLACEHOLDERS */
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.project-item:hover .img-placeholder {
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 1.5rem; }
    .logo { font-size: 1.5rem; }
    .menu-items { display: none; /* Add mobile menu later */ }
    
    .section { padding: 4rem 1.5rem; }
    
    .hero-bg-text { font-size: 20vw; }
    .hero-card h1 { font-size: 2.5rem; }
    
    .project-item, 
    .project-item:nth-child(even) {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .projects-section .section-header h2 { font-size: 3rem; }
    .project-info h3 { font-size: 2.5rem; }
    
    .contact-card h2 { font-size: 2.5rem; }
    .email-link { font-size: 1.2rem; }
}



/* SOUND CONTROL */
.mute-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    margin-left: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    text-transform: uppercase;
}

.mute-btn:hover {
    opacity: 1;
}
