/* ===== CSS VARIABLES ===== */
:root {
    /* Colors based on Maha design and web-design.json */
    --primary-color: #4ECDC4;
    --primary-hover: #3DB8AF;
    --primary-active: #2C9B93;
    
    --bg-primary: #1A1A1A;
    --bg-secondary: #2C2C2C;
    --bg-card: #2F2F2F;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --text-brand: #4ECDC4;
    
    --border-subtle: #404040;
    --border-medium: #6B6B6B;
    --border-brand: #4ECDC4;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 15px;
    
    /* Animations */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.2s ease-in-out;
    --transition-slow: 0.3s ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--bg-primary) !important;
    padding: 1rem 0;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem;
    transition: all var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(78, 205, 196, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.greeting-badge {
    display: inline-block;
    background: rgba(78, 205, 196, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

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

/* ===== HERO CONTACT ROW ===== */
.hero-contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item-inline {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-item-inline i {
    color: var(--primary-color);
    width: 14px;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.social-item-inline {
    display: flex;
    align-items: center;
}

.social-link-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(78, 205, 196, 0.3);
    font-size: 0.9rem;
}

.social-link-inline:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}



/* ===== HERO IMAGE ===== */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-xl);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.floating-element.element-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 30%;
    left: 5%;
    animation-delay: 0.5s;
}

.floating-element.element-3 {
    bottom: 30%;
    right: 5%;
    animation-delay: 1s;
}

.floating-element.element-4 {
    bottom: 10%;
    left: 15%;
    animation-delay: 1.5s;
}

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--primary-color);
    margin-bottom: 10px;
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

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

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 2px;
}

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

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.illustration-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.tech-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-base {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: orbit 8s linear infinite;
    box-shadow: var(--shadow-md);
}

.tech-element.tech-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.tech-element.tech-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1.6s;
}

.tech-element.tech-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3.2s;
}

.tech-element.tech-4 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4.8s;
}

.tech-element.tech-5 {
    top: 20%;
    left: 20%;
    animation-delay: 6.4s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

.about-content {
    padding-left: 2rem;
}

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

.skills-tags {
    margin: 2rem 0;
}

.skill-tag {
    display: inline-block;
    background: rgba(78, 205, 196, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.25rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
    transition: all var(--transition-base);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.download-cv {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.download-cv:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all var(--transition-slow);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

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

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.skills-content {
    padding-right: 2rem;
}

.skills-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 2rem;
}

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

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.skill-percentage {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background: var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.professional-skills {
    padding-left: 2rem;
}

.professional-skill-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.professional-skill-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.professional-skill-item .skill-icon {
    width: 50px;
    height: 50px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.professional-skill-item .skill-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.professional-skill-item .skill-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.timeline-section {
    padding: 0 1rem;
}

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

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.responsibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsibility-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.responsibility-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.project-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
    height: 100%;
}

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 1.2rem;
}

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

.project-content {
    padding: 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.project-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(78, 205, 196, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

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

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    font-size: 0.8rem;
    background: rgba(78, 205, 196, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

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

.contact-info {
    padding-right: 2rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.contact-info .contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info .contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info .contact-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info .contact-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.footer-social .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
    .hero-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .profile-container {
        width: 350px;
        height: 350px;
    }

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

@media (max-width: 991.98px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

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

    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .skills-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .professional-skills {
        padding-left: 0;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .profile-container {
        width: 300px;
        height: 300px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero-section {
        text-align: center;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-contact-row {
        justify-content: center;
        gap: 1rem;
    }

    .contact-item-inline {
        font-size: 0.8rem;
    }

    .contact-item-inline i {
        width: 12px;
        font-size: 0.75rem;
    }

    .social-link-inline {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }



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

    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
        margin: 2rem auto;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .illustration-container {
        width: 280px;
        height: 280px;
        margin: 0 auto 2rem;
    }

    .character-base {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .tech-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }

    .hero-name {
        font-size: 1.8rem;
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .skills-tags {
        text-align: center;
    }

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

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .navbar,
    .scroll-indicator,
    .floating-elements,
    .tech-elements,
    .contact-form {
        display: none !important;
    }

    .hero-section,
    .about-section,
    .services-section,
    .skills-section,
    .experience-section,
    .portfolio-section {
        page-break-inside: avoid;
        padding: 2rem 0 !important;
    }

    .section-title {
        color: black !important;
        border-bottom: 2px solid black !important;
    }

    .hero-name {
        color: black !important;
    }

    .contact-info .contact-item {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

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

/* Ensure content is visible by default, AOS will handle animations */
[data-aos] {
    opacity: 1;
}

.animate-on-scroll {
    opacity: 1;
    animation-fill-mode: both;
    animation-duration: 0.8s;
}

.animate-on-scroll.fadeInUp {
    animation-name: fadeInUp;
}

.animate-on-scroll.fadeInLeft {
    animation-name: fadeInLeft;
}

.animate-on-scroll.fadeInRight {
    animation-name: fadeInRight;
}
