/* ===== IMPORTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-dot {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo a:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.admin-link {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.admin-link::after {
    display: none;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.typing-text {
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

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

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

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

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

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: float 20s infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation: float 15s infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: 10%;
    left: 50%;
    animation: float 18s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

/* ===== SECTION STYLES ===== */
section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-img-wrapper {
    position: relative;
    width: 80%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    display: block;
}

.about-img-border {
    position: absolute;
    /* top: 20px; */
    /* left: 20px; */
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: 0;
    background: conic-gradient(from 0deg, #ff6b6b, #ff8787, #ffa502, #ff6348, #ff4757, #ff6348, #ff7675, #fab1a0, #ff7675, #fd79a8, #e84393, #a29bfe, #6c5ce7, #4834d4, #3742fa, #5f27cd, #00d2d3, #00b894, #55efc4, #00cec9, #0984e3, #74b9ff, #a29bfe, #6c5ce7, #ff6b6b, #ff8787, #ffa502, #ff6348, #ff4757, #ff6348, #ff7675, #fab1a0, #ff7675, #fd79a8, #e84393, #a29bfe, #6c5ce7, #4834d4, #3742fa, #5f27cd, #00d2d3, #00b894, #55efc4, #00cec9, #0984e3, #74b9ff, #a29bfe, #6c5ce7, #ff6b6b);
    padding: 110px;
}

.about-img-border::before {
    content: '';
    position: absolute;
    top: 110px;
    left: 110px;
    right: 110px;
    bottom: 110px;
    background: white;
    border-radius: 20px;
    z-index: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    margin-top: 4rem;
}

.skills-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

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

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease;
    width: 0;
}

.skill-progress.animate {
    width: var(--progress);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 100px;
}

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

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.blog {
    background: var(--bg-secondary);
}

.placeholder-content {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.placeholder-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    overflow-x: hidden;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

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

.contact-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-card p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease 0.9s both;
}

.slide-up {
    animation: slideUp 1s ease;
}

.slide-up-delay {
    animation: slideUp 1s ease 0.3s both;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .floating-shape {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .about-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section Mobile Responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .contact-info p {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
        text-align: center;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .contact-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-img-border {
        background: conic-gradient(from 0deg, #ff6b6b, #ff8787, #ffa502, #ff6348, #ff4757, #ff6348, #ff7675, #fab1a0, #ff7675, #fd79a8, #e84393, #a29bfe, #6c5ce7, #4834d4, #3742fa, #5f27cd, #00d2d3, #00b894, #55efc4, #00cec9, #0984e3, #74b9ff, #a29bfe, #6c5ce7, #ff6b6b, #ff8787, #ffa502, #ff6348, #ff4757, #ff6348, #ff7675, #fab1a0, #ff7675, #fd79a8, #e84393, #a29bfe, #6c5ce7, #4834d4, #3742fa, #5f27cd, #00d2d3, #00b894, #55efc4, #00cec9, #0984e3, #74b9ff, #a29bfe, #6c5ce7, #ff6b6b);
        padding: 110px;
    }
    
    .about-img-border::before {
        top: 110px;
        left: 110px;
        right: 110px;
        bottom: 110px;
    }
}

/* ===== DESKTOP/TABLET VIEW (LAPTOP) ===== */
@media (min-width: 769px) {
    .about-img-border {
        background: conic-gradient(from 0deg, #ff6b6b, #ff8787, #ffa502, #ff6348, #ff4757, #ff6348, #ff7675, #fab1a0, #ff7675, #fd79a8, #e84393, #a29bfe, #6c5ce7, #4834d4, #3742fa, #5f27cd, #00d2d3, #00b894, #55efc4, #00cec9, #0984e3, #74b9ff, #a29bfe, #6c5ce7, #ff6b6b, #ff8787, #ffa502, #ff6348, #ff4757, #ff6348, #ff7675, #fab1a0, #ff7675, #fd79a8, #e84393, #a29bfe, #6c5ce7, #4834d4, #3742fa, #5f27cd, #00d2d3, #00b894, #55efc4, #00cec9, #0984e3, #74b9ff, #a29bfe, #6c5ce7, #ff6b6b);
        padding: 160px;
    }
    
    .about-img-border::before {
        top: 160px;
        left: 160px;
        right: 160px;
        bottom: 160px;
    }
}

/* ===== ADMIN SECURITY MODAL ===== */
.security-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.security-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.security-header {
    text-align: center;
    margin-bottom: 2rem;
}

.security-warning {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.security-header h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.auth-failed-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.security-checks {
    margin: 2rem 0;
    min-height: 150px;
}

.security-check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    color: #fff;
    animation: slideInLeft 0.4s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.security-check-item .check-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-check-item .check-text {
    flex: 1;
}

.security-check-item .check-label {
    display: block;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.25rem;
}

.security-check-item .check-detail {
    display: block;
    font-size: 0.9rem;
    color: #9ca3af;
}

.check-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.security-message {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    text-align: center;
}

.security-message p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.security-message .message-highlight {
    color: #ef4444;
    font-weight: 600;
}

.security-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.security-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.security-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.security-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.security-btn-auth {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.security-btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.security-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
}

@media (max-width: 768px) {
    html, body {
        width: 100vw;
        overflow-x: hidden;
    }
    .container {
        max-width: 100vw;
        box-sizing: border-box;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== IMPROVED OPEN SOURCE SECTION ===== */
.opensource-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    height: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
}

.opensource-grid::-webkit-scrollbar {
    height: 8px;
}

.opensource-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.opensource-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.opensource-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.opensource-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 350px;
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.opensource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.opensource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.opensource-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.opensource-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.opensource-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.opensource-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.opensource-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.opensource-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== LIVE PROJECTS SECTION ===== */
.live-projects {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.live-projects-grid {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    height: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
}

.live-projects-grid::-webkit-scrollbar {
    height: 8px;
}

.live-projects-grid::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.live-projects-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.live-projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.live-project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 450px;
    flex: 0 0 calc((100% - 6rem) / 3);
    max-width: calc((100% - 6rem) / 3);
    min-width: 340px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

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

.live-project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    color: white;
    font-size: 4rem;
    opacity: 0.8;
}

.live-project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.live-project-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.live-project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.live-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.live-project-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.live-project-buttons .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 1024px) {
    /* Tablet - Show 2 cards */
    .opensource-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
        min-height: 340px;
    }
    
    .live-project-card {
        flex: 0 0 calc((100% - 3rem) / 2);
        max-width: calc((100% - 3rem) / 2);
        min-height: 440px;
    }
}

@media (max-width: 768px) {
    /* Mobile - Show 1 card */
    .opensource-grid {
        gap: 1.5rem;
    }
    
    .opensource-card {
        padding: 1.5rem;
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 320px;
    }
    
    .live-projects-grid {
        gap: 2rem;
    }
    
    .live-project-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 420px;
    }
    
    .live-project-content {
        padding: 1.5rem;
    }
    
    .live-project-buttons {
        flex-direction: column;
    }
    
    .live-project-buttons .btn {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Small Mobile - Show 1 card, optimized */
    .opensource-grid {
        gap: 1rem;
    }
    
    .opensource-card {
        padding: 1rem;
        min-height: 280px;
    }
    
    .opensource-title {
        font-size: 1.25rem;
    }
    
    .live-project-card {
        min-height: 380px;
    }
    
    .live-project-image {
        height: 150px; /* Smaller image height for small mobile */
    }
    
    .project-placeholder {
        font-size: 3rem;
    }
    
    /* Contact Section for Small Mobile */
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.25rem;
    }
    
    .contact-cards {
        gap: 0.75rem;
    }
    
    .contact-card {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-card h4 {
        font-size: 1rem;
    }
    
    .contact-form {
        gap: 0.75rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .live-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .live-project-title {
        font-size: 1.5rem;
    }
    
    .live-project-image {
        height: 150px;
    }
    
    .project-placeholder {
        font-size: 3rem;
    }
}
