/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #5e3bee;
    --secondary-color: #6d44b8;
    --text-color: #2d2e32;
    --text-color-light: #767676;
    --white-color: #ffffff;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e8e8e8;
    --section-bg: #f9f9f9;
    
    /* Sizes */
    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Font Sizes */
    --fs-xxl: 3.5rem;
    --fs-xl: 2.5rem;
    --fs-lg: 1.8rem;
    --fs-md: 1.2rem;
    --fs-sm: 0.9rem;
    --fs-xs: 0.75rem;
}

/* Dark Mode Colors */
.dark-mode {
    --text-color: #ffffff;
    --text-color-light: #a9a9a9;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --section-bg: #181818;
}

/* ===== RESET ===== */
*, 
*::before, 
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Common Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--fs-sm);
    border: none;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight {
    color: var(--primary-color);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: var(--fs-sm);
}

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

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--section-bg);
    margin-left: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--border-color);
}

.fa-sun {
    color: #ffb700;
    display: none;
}

.fa-moon {
    color: #6e7ac5;
}

.dark-mode .fa-sun {
    display: block;
}

.dark-mode .fa-moon {
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--section-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    margin-top: 25px;
    font-size: var(--fs-xxl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-size: var(--fs-lg);
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.hero-text p {
    color: var(--text-color-light);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.profile-image-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    margin-top: 45px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: morphing 10s infinite;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

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

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--section-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: var(--fs-lg);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-title {
    font-weight: 600;
    margin-right: 10px;
}

.info-value {
    color: var(--text-color-light);
}

/* Achievements Styles */
.achievements h3 {
    font-size: var(--fs-lg);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.achievements-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.achievement-card {
    flex: 1;
    min-width: 250px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-content {
    flex: 1;
}

.achievement-card h4 {
    font-size: var(--fs-sm);
    margin-bottom: 5px;
    color: var(--text-color);
}

.achievement-card p {
    color: var(--text-color-light);
    font-size: var(--fs-xs);
    line-height: 1.4;
}

/* ===== PROJECTS SECTION ===== */
.project-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--section-bg);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 59, 238, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link,
.project-github {
    width: 45px;
    height: 45px;
    background: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--fs-md);
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link,
.project-card:hover .project-github {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover,
.project-github:hover {
    background: var(--text-color);
    color: var(--white-color);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: var(--fs-md);
    margin-bottom: 10px;
    font-weight: 600;
}

.project-description {
    color: var(--text-color-light);
    font-size: var(--fs-sm);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 10px;
    background: var(--section-bg);
    color: var(--text-color-light);
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--section-bg);
}

.skills-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.skills-content h3 {
    font-size: var(--fs-lg);
    margin-bottom: 30px;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
}

.skill-item {
    text-align: center;
    transition: var(--transition);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-item h4 {
    font-size: var(--fs-sm);
    margin-bottom: 10px;
}

.skill-progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.soft-skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.soft-skills-list li {
    display: flex;
    align-items: center;
    color: var(--text-color-light);
}

.soft-skills-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    margin-right: 15px;
    font-size: var(--fs-md);
}

.card-content h3 {
    font-size: var(--fs-md);
    margin-bottom: 5px;
}

.card-content p {
    color: var(--text-color-light);
    font-size: var(--fs-sm);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--section-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
    font-size: var(--fs-sm);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== FOOTER ===== */
footer {
    background: #2d2e32;
    color: var(--white-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-logo a {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--white-color);
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--white-color);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
}

/* ===== SCROLL TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    :root {
        --container-width-lg: 90%;
    }
    
    .section-title {
        font-size: var(--fs-lg);
    }
}

@media screen and (max-width: 768px) {
    :root {
        --container-width-lg: 95%;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .mobile-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .profile-image-container {
        width: 70%;
        max-width: 300px;
        margin-top: 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-text h1 {
        font-size: calc(var(--fs-xxl) * 0.9);
        line-height: 1.3;
    }
    
    .hero-text h2 {
        font-size: calc(var(--fs-lg) * 0.95);
    }
    
    .hero-text p {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-text .tagline {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --fs-xxl: 2.5rem;
        --fs-xl: 2rem;
        --fs-lg: 1.5rem;
        --fs-md: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        width: var(--container-width-sm);
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }
    
    .social-icons {
        gap: 15px;
        margin-top: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .profile-image-container {
        width: 85%;
        max-width: 250px;
        margin-top: 20px;
    }
    
    .hero-image {
        max-width: 280px;
    }
}

/* Additional smaller phone styles */
@media screen and (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.9rem;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    .profile-image-container {
        width: 90%;
        max-width: 200px;
    }
}

/* Fix potential overflow issues on narrow screens */
@media screen and (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text p {
        font-size: 0.8rem;
    }
    
    .profile-image-container {
        max-width: 180px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
} 
