/* ===== VARIABLES ===== */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #f50057;
    --background-color: #0a192f;
    --surface-color: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-tertiary: #ccd6f6;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
body::-webkit-scrollbar {
  display: none; 
}


/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    overflow-x: hidden;
    user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    will-change: transform;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    z-index: 9999;
    opacity: 0;
    will-change: transform, opacity, scale;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-tertiary);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== COMMON SECTION STYLES ===== */
section {
    padding: 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.underline {
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 15rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.title {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.description {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
}

.shape {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.profile-container {
    width: 320px;
    height: 320px;
    position: relative;
    margin: 0 auto;
    z-index: 1;
}

.profile-container::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3) 0%, rgba(10, 25, 47, 0) 70%);
    top: -20%;
    left: -20%;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.profile-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: rotate-border 10s linear infinite;
    z-index: 1;
}

.profile-photo {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    overflow: hidden;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: rotate-photo 10s linear infinite reverse;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-container:hover .profile-photo img {
    transform: scale(1.1);
}

.profile-container:hover .profile-border {
    animation-play-state: paused;
    background: linear-gradient(225deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.5);
}

.profile-container:hover .profile-photo {
    animation-play-state: paused;
}

@keyframes rotate-border {
    0% {
        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    }
    25% {
        border-radius: 45% 55% 62% 38% / 53% 39% 61% 47%;
    }
    50% {
        border-radius: 33% 67% 70% 30% / 50% 50% 50% 50%;
    }
    75% {
        border-radius: 58% 42% 55% 45% / 32% 54% 46% 68%;
    }
    100% {
        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    }
}

@keyframes rotate-photo {
    0% {
        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    }
    25% {
        border-radius: 45% 55% 62% 38% / 53% 39% 61% 47%;
    }
    50% {
        border-radius: 33% 67% 70% 30% / 50% 50% 50% 50%;
    }
    75% {
        border-radius: 58% 42% 55% 45% / 32% 54% 46% 68%;
    }
    100% {
        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    }
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-tertiary);
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-weight: 600;
    color: var(--text-tertiary);
}

.info-value {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    font-size: 1.8rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 25, 47, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Ripple effect for project links */
.project-links a {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: rgba(108, 99, 255, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.skills-category h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-tertiary);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3rem;
    justify-content: center;
}

.skill-item {
    text-align: center;
}

.skill-icon {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-item h4 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-tertiary);
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 0.2s ease-in-out;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.contact-info h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-tertiary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--surface-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-text h4 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--surface-color);
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-tertiary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.4rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .description {
        margin: 0 auto 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .personal-info {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--surface-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hamburger {
        display: block;
        z-index: 100;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .title {
        font-size: 4.5rem;
    }
    
    .subtitle {
        font-size: 2.5rem;
    }
    
    .shape {
        width: 250px;
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-category {
        margin-bottom: 3rem;
    }
}
