/* Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Modern Design */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-card: #ffffff;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #374151;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: var(--transition);
}

*::selection{
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

html{
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
.contanier{
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Modern Button Styles */
.btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

section{
    padding: 120px 0 80px;
    position: relative;
}

/* Modern Section Headers */
.sec-top{
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.sec-top h1{
    color: var(--text-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.sec-top h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.sec-top h1 span{
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sec-top p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Grid System */
.boxs{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: start;
}

.boxs .box{
    width: 100%;
}
/* Modern Header */
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

header.active{
    background: var(--bg-primary);
    box-shadow: var(--shadow-light);
}

header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

header nav .logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

header nav .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

header nav .nav-links a{
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

header nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

header nav .nav-links a:hover::after,
header nav .nav-links a.active::after {
    width: 100%;
}

header nav .nav-links a:hover,
header nav .nav-links a.active{
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(180deg);
}

#btn-menu{
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

#btn-menu:hover {
    background: var(--bg-secondary);
}

/* Modern Hero Section */
.hero{
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero .contanier{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero .content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero .content h4{
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 16px;
    position: relative;
}

.hero .content h4::before {
    content: '👋';
    margin-right: 8px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.hero .content h1{
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0 16px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero .content p{
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.hero .content p::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 30px;
    background: #fff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero .content .btn{
    font-size: 18px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero .content .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero .hero-img {
    position: relative;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero .hero-img img{
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.hero .hero-img img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Floating Elements */
.hero .hero-img::before,
.hero .hero-img::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero .hero-img::before {
    top: -20px;
    right: -20px;
    animation: float 3s ease-in-out infinite;
}

.hero .hero-img::after {
    bottom: -20px;
    left: -20px;
    animation: float 3s ease-in-out infinite reverse;
}
/* Modern About Section */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about .contanier{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about .about-img {
    position: relative;
}

.about .about-img img{
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
}

.about .about-img img:hover {
    transform: scale(1.02);
}

.about .about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    z-index: -1;
    opacity: 0.1;
}

.about .content{
    position: relative;
}

.about .content h1{
    color: var(--text-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.about .content h1 span{
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about .content h3{
    color: var(--text-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 32px;
    position: relative;
    padding-left: 20px;
}

.about .content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about .content p{
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}

.skill-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Modern Services Section */
.services{
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.services .boxs {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.services .boxs .box{
    background: var(--bg-card);
    padding: 50px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-light);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.services .boxs .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.services .boxs .box:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.services .boxs .box .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.services .boxs .box .icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.services .boxs .box:hover .icon-wrapper::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.services .boxs .box i{
    color: #fff;
    font-size: 36px;
    z-index: 2;
    position: relative;
}

.services .boxs .box h3{
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.services .boxs .box p{
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1rem;
}

.services .boxs .box .btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.services .boxs .box .btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
}
/* Modern Portfolio Section */
.portfolio {
    background: var(--bg-secondary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.portfolio .boxs {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio .boxs .box{
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    background: var(--bg-card);
    aspect-ratio: 4/3;
}

.portfolio .boxs .box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.portfolio .boxs .box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio .boxs .box:hover img{
    transform: scale(1.1);
}

.portfolio .boxs .box .box-hover{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    opacity: 0;
    backdrop-filter: blur(10px);
}

.portfolio .boxs .box:hover .box-hover{
    opacity: 1;
}

.portfolio .boxs .box .box-hover span{
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.portfolio .boxs .box .box-hover .project-links {
    display: flex;
    gap: 16px;
}

.portfolio .boxs .box .box-hover .project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.portfolio .boxs .box .box-hover .project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Portfolio Filter Buttons */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-light);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
}

/* Modern Contact Section */
.contact{
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.contact-item .info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item .info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact form{
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.contact form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact form h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact form input,
.contact form textarea{
    width: 100%;
    font-size: 16px;
    padding: 16px 20px;
    outline: none;
    border: 2px solid var(--bg-secondary);
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.contact form input:focus,
.contact form textarea:focus{
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

.contact form button{
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
/* Modern Responsive Design */

@media(max-width: 1200px){
    .contanier{
        width: 95%;
        padding: 0 15px;
    }
    
    .hero .contanier {
        gap: 40px;
    }
    
    .about .contanier {
        gap: 60px;
    }
    
    .contact .contanier {
        gap: 60px;
    }
}

@media(max-width: 900px){
    .hero .contanier {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .about .contanier {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .contact .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .contact-item {
        background: var(--bg-primary);
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .contact-item .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-item .info h4 {
        font-size: 1rem;
    }

    .contact-item .info p {
        font-size: 0.9rem;
    }
    
    .boxs {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    header nav .nav-links {
        gap: 30px;
    }
    
    .form-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media(max-width: 768px){
    section {
        padding: 80px 0 60px;
    }
    
    .sec-top {
        margin-bottom: 60px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    #btn-menu {
        display: block;
    }
    
    header nav .nav-links {
        position: absolute;
        top: -400px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
        gap: 0;
    }
    
    header nav .nav-links.active {
        top: 100%;
    }
    
    header nav .nav-links a {
        width: 100%;
        padding: 16px 20px;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
    }
    
    header nav .nav-links a:last-child {
        border-bottom: none;
    }
    
    header nav .nav-links a.active,
    header nav .nav-links a:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: #fff;
    }
    
    .services .boxs .box {
        padding: 40px 25px;
    }
    
    .contact form,
    .contact-info {
        padding: 40px 30px;
    }
}

@media(max-width: 600px){
    .contanier {
        padding: 0 10px;
    }
    
    .boxs {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .portfolio-filter {
        gap: 12px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media(max-width: 480px){
    section {
        padding: 60px 0 40px;
    }
    
    .sec-top {
        margin-bottom: 40px;
    }
    
    .services .boxs .box,
    .contact form {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .contact-item .icon {
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-info .social-links {
        margin-top: 25px;
        gap: 15px;
    }

    .contact-info .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .skills-tags {
        gap: 8px;
    }
    
    .skill-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Loading Animation */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-secondary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.btn, .social-link, .project-link, .contact-item {
    position: relative;
    overflow: hidden;
}

.btn::after, .social-link::after, .project-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after, .social-link:hover::after, .project-link:hover::after {
    width: 300px;
    height: 300px;
}

/* Particle Background for Hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 6s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    header, .theme-toggle, .btn, .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--text-primary), #2d3748);
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-section ul li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-section ul li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 15px;
    position: relative;
}

.footer-section ul li:not(:has(a))::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
}

.footer-section .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section .contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-section .social-links {
    margin-top: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom i {
    color: #e53e3e;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Footer Responsive */
@media(max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
