/* Modern Color Scheme */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --dark: #2d3436;
    --light: #f5f6fa;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --white: #ffffff;
    --black: #000000;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section {
    position: relative;
    z-index: 2;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-left: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob-1, .blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-50px, -50px) rotate(10deg);
    }
}

/* Floating Tech Icons */
.floating-tech {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-tech i {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float-icon 15s infinite linear;
}

.floating-tech i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-tech i:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-delay: 3s;
}

.floating-tech i:nth-child(3) {
    top: 40%;
    right: 10%;
    animation-delay: 6s;
}

.floating-tech i:nth-child(4) {
    top: 80%;
    right: 15%;
    animation-delay: 9s;
}

.floating-tech i:nth-child(5) {
    top: 30%;
    right: 20%;
    animation-delay: 12s;
}

@keyframes float-icon {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

.hero-title .name {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.typing-container {
    height: 2.5rem;
    margin-bottom: 20px;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.typing-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray);
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background-color: var(--primary);
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

.pulse {
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

.hero-image {
    flex: 1;
    position: relative;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.profile-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    z-index: 1;
    transition: var(--transition);
}

.profile-dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--primary) 20%, transparent 20%);
    background-size: 10px 10px;
    z-index: 3;
    opacity: 0.3;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.tech-stack {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.tech-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.about-content h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.detail-text h4 {
    margin-bottom: 5px;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark);
}

.category-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-info i {
    font-size: 1.2rem;
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-percent {
    align-self: flex-end;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

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

.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: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    color: var(--white);
    margin-bottom: 10px;
}

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

.project-tech span {
    font-size: 0.8rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 50px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.info-content h3 {
    margin-bottom: 5px;
}

.info-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-content a:hover {
    color: var(--primary-dark);
}

.contact-form {
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

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

.form-group i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group textarea {
    border-radius: 20px;
    min-height: 150px;
    resize: vertical;
    padding-top: 20px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

button[type="submit"] {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-title .name {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .profile-container {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero-title .name {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.3rem;
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title .name {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        gap: 30px;
    }
    
    .form-group input,
    .form-group textarea {
        padding-left: 40px;
    }
}
/* Tech Icons Styling */
.floating-tech {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-tech i {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite linear;
}

/* Skill Bars Styling */
.skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.skill-info i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #4cc9f0;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.skill-percent {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    margin-top: 5px;
    color: #4cc9f0;
}

/* Category Titles */
.category-title {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 20px;
}

.category-title i {
    margin-right: 10px;
    color: #4cc9f0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-tech i {
        font-size: 1rem;
    }
}