/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44db;
    --dark-color: #2f2e41;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white-color: #ffffff;
    --black-color: #212529;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--black-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.btn-outline-light {
    border-color: var(--white-color);
    color: var(--white-color);
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 18px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader .loader {
    text-align: center;
}

.preloader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
    font-family: var(--font-secondary);
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar.scrolled .navbar-brand {
    color: var(--dark-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    color: var(--white-color);
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--dark-color);
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 15px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: calc(100% - 30px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, #3f3d56 100%);
    color: var(--white-color);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    top: -250px;
    right: -250px;
}

.hero-section:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    bottom: -150px;
    left: -150px;
}

.hero-title {
    font-size: 60px;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--white-color);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-image {
    border-radius: 20px;
    position: relative;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
}

.hero-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    top: 20px;
    left: 20px;
    z-index: 2;
    border-radius: 20px;
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.about-image-container {
    position: relative;
    padding-right: 30px;
}

.about-image {
    border-radius: 20px;
    position: relative;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.about-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    bottom: 20px;
    right: 0;
    z-index: 2;
    border-radius: 20px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
    font-size: 16px;
}

.about-info p {
    margin-bottom: 15px;
}

.about-info p span {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 100px;
    display: inline-block;
}

/* Skills Section */
.skills-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.skills-content p {
    margin-bottom: 30px;
    font-size: 16px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info span:first-child {
    font-weight: 600;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--light-gray);
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.skill-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.skill-card h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

.skill-card p {
    font-size: 14px;
    color: var(--gray-color);
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 5px 10px;
    border: none;
    background-color: transparent;
    color: var(--gray-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.project-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    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: 250px;
}

.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-color: rgba(108, 99, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background-color: var(--white-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.project-content {
    padding: 20px;
}

.project-content h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.project-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background-color: var(--light-gray);
    color: var(--gray-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* Contact Section */
.contact-info {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 30px;
    font-size: 24px;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    padding: 10px 15px;
    width: 100%;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25);
}

textarea.form-control {
    height: auto;
    resize: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 80px 0 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-social h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Floating Social Icons */
.social-floating {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .social-floating {
        left: 15px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-image-container {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .social-floating {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 14px;
    }
}