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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.2);
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

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

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

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient);
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="850" cy="150" r="80" fill="rgba(255,255,255,0.05)"/><circle cx="200" cy="800" r="60" fill="rgba(255,255,255,0.03)"/><circle cx="700" cy="700" r="40" fill="rgba(255,255,255,0.04)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite alternate;
}

/* Floating particles */
.hero .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatParticles 20s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .particle:nth-child(1) {
    width: 12px;
    height: 12px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
    background: rgba(6, 182, 212, 0.3);
}

.hero .particle:nth-child(2) {
    width: 16px;
    height: 16px;
    left: 20%;
    animation-delay: 5s;
    animation-duration: 30s;
    background: rgba(124, 58, 237, 0.3);
}

.hero .particle:nth-child(3) {
    width: 10px;
    height: 10px;
    left: 30%;
    animation-delay: 10s;
    animation-duration: 35s;
    background: rgba(37, 99, 235, 0.3);
}

.hero .particle:nth-child(4) {
    width: 14px;
    height: 14px;
    left: 50%;
    animation-delay: 15s;
    animation-duration: 28s;
    background: rgba(255, 255, 255, 0.3);
}

.hero .particle:nth-child(5) {
    width: 18px;
    height: 18px;
    left: 70%;
    animation-delay: 20s;
    animation-duration: 32s;
    background: rgba(6, 182, 212, 0.2);
}

.hero .particle:nth-child(6) {
    width: 12px;
    height: 12px;
    left: 85%;
    animation-delay: 8s;
    animation-duration: 26s;
    background: rgba(124, 58, 237, 0.2);
}

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

@keyframes gradientShift {
    0% {
        background: 
            radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 20% 70%, rgba(124, 58, 237, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 60% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 60%);
    }
    100% {
        background: 
            radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 70% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 30% 60%, rgba(37, 99, 235, 0.4) 0%, transparent 40%);
    }
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

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

.hero-content {
    color: white;
    animation: slideInLeft 1s ease-out;
}

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

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 6px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

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

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

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

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

/* CTA Button Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(6, 182, 212, 0.6);
    }
    100% {
        box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
    }
}

.cta-button {
    animation: pulse 2s infinite;
}

.cta-button:hover {
    animation: none; /* Stop pulse on hover */
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Expandable Content */
.expandable-content .full-text {
    display: none;
}

.expandable-content.expanded .short-text {
    display: none;
}

.expandable-content.expanded .full-text {
    display: inline;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

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

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

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Work Experience Section */
.work-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.work-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.work-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.work-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.work-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Certificates */
.cert-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Blog Section */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.blog-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--gradient);
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Form Styles */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.contact-submit-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    min-width: 200px;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(-1px);
}

.contact-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
}

.contact-divider span {
    background: var(--gradient);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* Enhanced Contact Buttons */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    min-height: 50px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Specific colors for social media buttons */
.contact-btn:nth-child(3):hover { /* Facebook */
    background: #1877f2;
    color: white;
}

.contact-btn:nth-child(4):hover { /* Messenger */
    background: #00b2ff;
    color: white;
}

.contact-btn:nth-child(5):hover { /* Twitter */
    background: #1da1f2;
    color: white;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem 0;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-content > p {
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

.collaboration {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 1rem;
}

.collab-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.ai-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-style: italic;
}

.collab-text strong,
.ai-credit strong {
    color: var(--accent-color);
    font-weight: 600;
}

.developer-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.developer-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.developer-link strong {
    transition: all 0.3s ease;
}

.developer-link:hover strong {
    color: white;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-content > p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .collab-text {
        font-size: 0.8rem;
    }
    
    .ai-credit {
        font-size: 0.75rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero {
        padding-top: 100px; /* Account for navbar on tablets */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 2rem;
    }
    
    .hero-image {
        order: 2; /* Photo goes to bottom on tablets and below */
    }
    
    .hero-content {
        order: 1;
    }
    
    .profile-photo,
    .photo-placeholder {
        width: 280px;
        height: 280px;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        min-height: calc(100vh - 80px); /* Adjust for navbar */
        padding: 100px 0 2rem 0; /* More top padding for mobile */
        justify-content: center;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .profile-photo,
    .photo-placeholder {
        width: 250px;
        height: 250px;
    }

    .cta-button {
        padding: 1.1rem 2.2rem;
        font-size: 1rem;
        font-weight: 700;
        margin-top: 1.5rem;
        width: auto;
        min-width: 200px;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Contact form mobile styles */
    .contact-form-wrapper {
        padding: 1.5rem;
        margin: 0 auto 2rem auto;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .cert-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cert-icon {
        margin-right: 0;
    }

    /* Enhanced hero effects for mobile */
    .hero-content::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    .hero-image::before {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 120px 0 2rem 0; /* Even more top padding for small screens */
        min-height: calc(100vh - 60px);
    }
    
    .hero-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .profile-photo,
    .photo-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        font-weight: 700;
        margin-top: 2rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card,
    .work-item,
    .cert-item {
        padding: 1.5rem;
    }
    
    /* Contact form mobile styles */
    .contact-form-wrapper {
        padding: 1rem;
        margin: 0 auto 1.5rem auto;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .contact-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Mobile-specific hero enhancements */
    .hero-content::before {
        display: none; /* Remove glow effect on very small screens for performance */
    }

    .hero-image::before {
        animation-duration: 30s; /* Slower animation on mobile */
    }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here later */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
