/* ===== VARIABLES ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    --dark-bg: #0f0f23;
    --dark-surface: #1a1b2f;
    --dark-card: #252641;
    --dark-border: #2d2f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== LOADING SCREEN ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--dark-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element.el-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.el-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element.el-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element.el-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ===== CURSOR EFFECT ===== */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-close, .nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HOME SECTION ===== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.home-badge {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.home-title {
    margin-bottom: 1.5rem;
}

.title-name {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.title-role {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.home-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.home-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--dark-surface);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.home-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-primary);
    padding: 10px;
    animation: float 6s ease-in-out infinite;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--dark-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

.floating-tech {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.tech-tag {
    position: absolute;
    background: var(--dark-surface);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: orbit 20s linear infinite;
}

.tech-tag:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-tag:nth-child(2) {
    top: 10%;
    right: 10%;
    animation-delay: -5s;
}

.tech-tag:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
}

.tech-tag:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: -15s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    margin: 0 auto 10px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ===== ABOUT SECTION ===== */
.about-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--gradient-primary);
    padding: 0px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.1); /* subtle border */
}

.image-frame .image-placeholder {
    border-radius: var(--border-radius);
    font-size: 4rem;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--dark-border);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--dark-surface);
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.skill-tag::after {
    content: attr(data-level);
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 30px;
}

.skill-tag:hover::after {
    top: 0;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--dark-border);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    overflow: hidden;
}

.project-image .image-placeholder {
    border-radius: 0;
    font-size: 3rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    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: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: var(--dark-surface);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.projects-cta {
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-form {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-surface);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--accent-color);
    margin: 0 2px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 968px) {
    .home-container,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .home-image {
        order: -1;
    }
    
    .title-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .home-buttons {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .title-name {
        font-size: 2rem;
    }
    
    .home-image .image-wrapper {
        width: 660px;
        height: 660px;
    }
    
    .image-frame {
        width: 300px;
        height: 300px;
    }
    .image-frame {
        width: 400px;
        height: 400px;
        border-radius: 20px;
        overflow: hidden;
        background: var(--gradient-primary);
        padding: 0px;
    }

    .image-container {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        overflow: hidden;
    }

    .profile-photo {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        background: var(--dark-card);
    }
    /* ===== MOBILE FIXES ===== */
    @media screen and (max-width: 768px) {
        /* General fixes */
        .container {
            padding: 0 15px;
        }
        
        .section {
            padding: 60px 0;
        }
        
        /* Home section mobile fix */
        .home-container {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }
        
        .home-content {
            order: 2;
        }
        
        .home-image {
            order: 1;
        }
        
        .image-wrapper {
            width: 280px;
            height: 280px;
            margin: 0 auto;
        }
        
        .title-name {
            font-size: 2.2rem;
        }
        
        .title-role {
            font-size: 1.3rem;
        }
        
        .home-buttons {
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }
        
        .home-buttons .btn {
            width: 100%;
            max-width: 250px;
            justify-content: center;
        }
        
        /* About section mobile fix */
        .about-container {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }
        
        .image-frame {
            width: 300px;
            height: 300px;
            margin: 0 auto;
        }
        
        .about-stats {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        /* Skills section mobile fix */
        .skills-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .skill-category {
            padding: 1.5rem;
        }
        
        .skill-tags {
            justify-content: center;
        }
        
        /* Projects section mobile fix */
        .projects-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .project-card {
            margin: 0 auto;
            max-width: 350px;
        }
        
        /* Contact section mobile fix */
        .contact-container {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .contact-form {
            padding: 1.5rem;
        }
        
        /* Footer mobile fix */
        .footer-content {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }
        
        .footer-links {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        /* Navigation mobile fix */
        .nav-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            height: 100vh;
            background: var(--dark-surface);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: var(--transition);
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        }
        
        .nav-menu.active {
            right: 0;
        }
        
        .nav-list {
            flex-direction: column;
            text-align: center;
            gap: 2rem;
        }
        
        .nav-close {
            display: block;
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .nav-toggle {
            display: block;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* Back to top button mobile */
        .back-to-top {
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
        }
    }

    /* Extra small devices */
    @media screen and (max-width: 480px) {
        .section-title {
            font-size: 2rem;
        }
        
        .title-name {
            font-size: 1.8rem;
        }
        
        .image-wrapper {
            width: 250px;
            height: 250px;
        }
        
        .image-frame {
            width: 250px;
            height: 250px;
        }
        
        .home-badge {
            font-size: 0.8rem;
            padding: 6px 12px;
        }
        
        .btn {
            padding: 10px 20px;
            font-size: 0.9rem;
        }
    }

    /* Fix untuk foto profil di mobile */
    @media screen and (max-width: 768px) {
        .profile-photo {
            object-fit: contain;
            background: var(--dark-card);
        }
        
        .image-container {
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--dark-card);
        }
    }
    /* Fix untuk home image di mobile */
    @media screen and (max-width: 768px) {
        .home-image {
            order: 1;
            margin-bottom: 1rem;
        }
        
        .image-wrapper {
            width: 200px !important;  /* Ukuran lebih kecil */
            height: 200px !important;
            margin: 0 auto;
        }
        
        .profile-photo {
            object-fit: cover;
            object-position: center 25%;
        }
        
        /* Perkecil floating tech tags */
        .tech-tag {
            font-size: 0.7rem;
            padding: 5px 10px;
        }
        
        /* Adjust orbit animation untuk ukuran lebih kecil */
        @keyframes orbit {
            0% {
                transform: rotate(0deg) translateX(100px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateX(100px) rotate(-360deg);
            }
        }
    }

    /* Untuk device sangat kecil */
    @media screen and (max-width: 480px) {
        .image-wrapper {
            width: 180px !important;
            height: 180px !important;
        }
        
        .tech-tag {
            font-size: 0.6rem;
            padding: 4px 8px;
        }
        
        @keyframes orbit {
            0% {
                transform: rotate(0deg) translateX(80px) rotate(0deg);
            }
            100% {
                transform: rotate(360deg) translateX(80px) rotate(-360deg);
            }
        }
    }
    /* Fix untuk home-social di mobile */
    @media screen and (max-width: 768px) {
        .home-social {
            display: flex;
            justify-content: center !important; /* Force center */
            align-items: center;
            gap: 1rem;
            margin: 0 auto;
            width: 100%;
        }
        
        .home-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        /* Pastikan semua konten di home-content rata tengah */
        .home-title,
        .home-description,
        .home-buttons {
            text-align: center;
            width: 100%;
        }
        
        .home-buttons {
            justify-content: center;
        }
    }

    /* Untuk device sangat kecil */
    @media screen and (max-width: 480px) {
        .home-social {
            gap: 0.8rem;
        }
        
        .social-link {
            width: 40px;
            height: 40px;
        }
    }        
    /* Form Status Styles */
    .form-status {
        padding: 15px;
        border-radius: var(--border-radius);
        margin-bottom: 20px;
        font-weight: 500;
    }

    .form-status.success {
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid var(--secondary-color);
        color: var(--secondary-color);
    }

    .form-status.error {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid #ef4444;
        color: #ef4444;
    }    
    /* ===== POPUP NOTIFICATION STYLES ===== */
    .notification-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .notification-popup.active {
        opacity: 1;
        visibility: visible;
    }

    .popup-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
    }

    .popup-content {
        position: relative;
        background: var(--dark-card);
        border-radius: var(--border-radius-lg);
        padding: 2.5rem;
        text-align: center;
        max-width: 400px;
        width: 90%;
        border: 1px solid var(--dark-border);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        transform: translateY(30px);
        transition: transform 0.3s ease;
        z-index: 10000;
    }

    .notification-popup.active .popup-content {
        transform: translateY(0);
    }

    .popup-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .popup-icon .fa-check-circle {
        color: var(--secondary-color);
    }

    .popup-icon .fa-exclamation-circle {
        color: var(--accent-color);
    }

    .popup-message h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .popup-message p {
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .popup-close-btn {
        background: var(--gradient-primary);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: var(--border-radius);
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: var(--transition);
        width: 100%;
    }

    .popup-close-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* Success specific styles */
    .notification-popup.success .popup-content {
        border-top: 4px solid var(--secondary-color);
    }

    /* Error specific styles */
    .notification-popup.error .popup-content {
        border-top: 4px solid var(--accent-color);
    }
}