/* Mobile Styles - 768px and below */
:root {
    --primary-color: #1e40af;
    --secondary-color: #1e3a8a;
    --accent-color: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --background: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --linkedin-color: #0077b5;
    --github-color: #24292e;
    --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);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 15px;
    position: relative;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.profile-card {
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Header Section */
.card-header {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.header-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e293b 100%);
    position: relative;
}

.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Profile Image */
.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: -70px auto 0;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--card-background);
    box-shadow: var(--shadow-lg);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border: 3px solid var(--card-background);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

/* Profile Info */
.profile-info {
    text-align: center;
    padding: 20px 20px 15px;
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.profile-location {
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--background);
    border-radius: 20px;
}

.profile-location i {
    color: var(--primary-color);
    font-size: 12px;
}

/* Section Styles */
.about-section,
.skills-section,
.contact-section,
.social-section {
    padding: 25px 20px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 16px;
}

/* About Section */
.about-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 8px 16px;
    background: #1e40af;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: var(--shadow-sm);
}

.skill-tag:active {
    transform: scale(0.95);
    background: #1e3a8a;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.email-btn {
    background: #1e40af;
    color: white;
}

.email-btn:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
    background: #1e3a8a;
}

.phone-btn {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
}

.phone-btn:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

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

.cv-btn:active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
    transform: scale(0.98);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--background);
    border: 2px solid var(--border-color);
    -webkit-tap-highlight-color: transparent;
}

.social-link i {
    font-size: 24px;
    transition: transform 0.3s ease;
    width: 30px;
    text-align: center;
}

.social-link span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.social-link:active {
    transform: scale(0.98);
}

.social-link.linkedin:active {
    background: var(--linkedin-color);
    border-color: var(--linkedin-color);
}

.social-link.linkedin:active i,
.social-link.linkedin:active span {
    color: white;
}

.social-link.linkedin i {
    color: var(--linkedin-color);
}

.social-link.github:active {
    background: var(--github-color);
    border-color: var(--github-color);
}

.social-link.github:active i,
.social-link.github:active span {
    color: white;
}

.social-link.github i {
    color: var(--github-color);
}

.social-link.email:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.social-link.email:active i,
.social-link.email:active span {
    color: white;
}

.social-link.email i {
    color: var(--primary-color);
}

.social-link.portfolio:active {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.social-link.portfolio:active i,
.social-link.portfolio:active span {
    color: white;
}

.social-link.portfolio i {
    color: #8b5cf6;
}

.social-link.phone:active {
    background: #10b981;
    border-color: #10b981;
}

.social-link.phone:active i,
.social-link.phone:active span {
    color: white;
}

.social-link.phone i {
    color: #10b981;
}

/* Footer */
.card-footer {
    padding: 20px;
    background: var(--background);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.card-footer p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.domain {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-tag {
    animation: slideIn 0.5s ease-out backwards;
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-tag:nth-child(5) { animation-delay: 0.5s; }
.skill-tag:nth-child(6) { animation-delay: 0.6s; }
.skill-tag:nth-child(7) { animation-delay: 0.7s; }
.skill-tag:nth-child(8) { animation-delay: 0.8s; }

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}
