/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #2196f3;
    --primary-dark: #0d47a1;
    --primary-light: #bbdefb;
    --secondary-color: #00b0ff;
    --accent-color: #ff6d00;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --gray-color: #757575;
    --success-color: #4caf50;
    --error-color: #f44336;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --text-color: #212121;
    --border-color: #e0e0e0;
    --bg-color: #f5f5f5;
}

.dark-theme {
    --text-color: #f5f5f5;
    --bg-color: #121212;
    --light-color: #1e1e1e;
    --dark-color: #f5f5f5;
    --gray-color: #aaaaaa;
    --border-color: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 6rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.underline {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    top: 0;
    left: -15px;
    border-radius: 10px;
    animation: slide 2s infinite;
}

@keyframes slide {
    0% {
        left: -15px;
    }
    50% {
        left: 55px;
    }
    100% {
        left: -15px;
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: 0.5s;
}

.loading-animation {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-loading-icon {
    margin-bottom: 20px;
}

.phone-loading-icon i {
    font-size: 6rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.dot {
    font-size: 2rem;
    color: var(--primary-color);
    animation: loading-dots 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

@keyframes loading-dots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}



/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.2rem 0;
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(187, 222, 251, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.dark-theme .hero {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(13, 71, 161, 0.8) 100%);
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-animation 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-animation2 5s infinite linear alternate-reverse;
}

@keyframes glitch-animation {
    0% {
        clip: rect(24px, 450px, 90px, 0);
    }
    20% {
        clip: rect(62px, 450px, 82px, 0);
    }
    40% {
        clip: rect(58px, 450px, 54px, 0);
    }
    60% {
        clip: rect(44px, 450px, 92px, 0);
    }
    80% {
        clip: rect(98px, 450px, 18px, 0);
    }
    100% {
        clip: rect(79px, 450px, 71px, 0);
    }
}

@keyframes glitch-animation2 {
    0% {
        clip: rect(18px, 450px, 79px, 0);
    }
    20% {
        clip: rect(41px, 450px, 97px, 0);
    }
    40% {
        clip: rect(28px, 450px, 94px, 0);
    }
    60% {
        clip: rect(12px, 450px, 33px, 0);
    }
    80% {
        clip: rect(68px, 450px, 97px, 0);
    }
    100% {
        clip: rect(95px, 450px, 52px, 0);
    }
}

.typewriter {
    margin-bottom: 1.5rem;
}

.typewriter h2 {
    font-size: 1.8rem;
    font-weight: 500;
    display: inline-flex;
    color: var(--text-color);
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 0.5rem;
    position: relative;
}

.typed-text::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--text-color);
    animation: blink 0.7s infinite;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

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

.primary-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    color: white;
}

.secondary-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

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

.mobile-portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.mobile-portfolio-btn:hover::before {
    left: 100%;
}

.mobile-portfolio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-icons a i {
    font-size: 1.5rem; /* Increased from default size */
}

.dark-theme .social-icons a {
    background-color: #2a2a2a;
    border-color: #333;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-blob {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    animation: blob-animation 8s infinite;
}

@keyframes blob-animation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.flutter-animation {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device {
    width: 280px;
    background-color: var(--dark-color);
    border-radius: 30px;
    box-shadow: var(--shadow-dark);
    padding: 10px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    z-index: 10;
    /* Use aspect ratio to maintain proportions */
    aspect-ratio: 0.48;
    /* Set max dimensions */
    max-width: 80vw;
    max-height: 70vh;
}

@media screen and (max-width: 768px) {
    .device {
        width: 240px;
        max-width: 70vw;
        max-height: 60vh;
    }
}

@media screen and (max-width: 480px) {
    .device {
        width: 200px;
        max-width: 60vw;
        max-height: 50vh;
    }
}

.dark-theme .device {
    background-color: #000;
}

.screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-sizing: border-box;

}

.dark-theme .screen {
    background-color: #121212;
}

.app-ui {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.app-bar {
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.app-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.app-screen {
    display: none;
    height: 100%;
    flex-direction: column;
    padding: 15px;
    background-color: white;
    color: var(--text-color);
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.dark-theme .app-screen {
    background-color: #121212;
    color: #f5f5f5;
}

.app-screen.active {
    display: flex;
}

.app-header {
    margin-bottom: 15px;
}

.app-title {
    text-align: center;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.dark-theme .app-subtitle {
    color: #aaa;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}

.profile-image-wrapper {
    width: 120px;
    height: 160px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
    animation: rotate 8s linear infinite;
    overflow: hidden;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.phone-profile-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid white;
    animation: counter-rotate 8s linear infinite;
}

.dark-theme .phone-profile-image {
    border-color: #121212;
}

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

.app-portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.phone-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 16px 24px;
    border-radius: 16px;
    margin: 24px auto;
    width: 85%;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.phone-download-btn::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;
}

.phone-download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.phone-download-btn:hover::before {
    left: 100%;
}

.phone-download-btn:hover::after {
    width: 300px;
    height: 300px;
}

.phone-download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.phone-download-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.phone-download-btn i {
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    animation: downloadPulse 2s infinite;
}

.phone-download-btn span {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.phone-interactive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 0.8em 1.2em;
    border-radius: 50px;
    margin: 1em auto;
    width: 80%;
    font-weight: 500;
    font-size: 0.9em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.phone-interactive-btn i {
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

.phone-interactive-btn span {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.phone-interactive-btn::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;
}

.phone-interactive-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.phone-interactive-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.phone-interactive-btn:hover::before {
    left: 100%;
}

.phone-interactive-btn:hover::after {
    width: 300px;
    height: 300px;
}

.phone-interactive-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.settings-section {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.dark-theme .settings-section {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

.settings-section h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f0f0;
    border-radius: 30px;
    padding: 5px 15px;
    transition: var(--transition);
    max-width: 100%;
    box-sizing: border-box;
}

.dark-theme .theme-switch {
    background-color: #2a2a2a;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-option.active {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-theme .theme-option.active {
    background-color: #3a3a3a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-option i {
    font-size: 1rem;
}

.phone-color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.phone-color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.phone-color-option:hover, .phone-color-option.active {
    transform: scale(1.1);
    border-color: white;
}

.dark-theme .phone-color-option:hover, 
.dark-theme .phone-color-option.active {
    border-color: #3a3a3a;
}

.phone-color-option[data-theme="blue"] {
    background-color: #2196f3;
}

.phone-color-option[data-theme="green"] {
    background-color: #4caf50;
}

.phone-color-option[data-theme="purple"] {
    background-color: #673ab7;
}

.phone-color-option[data-theme="pink"] {
    background-color: #e91e63;
}

.phone-color-option[data-theme="orange"] {
    background-color: #ff5722;
}

.phone-color-option[data-theme="teal"] {
    background-color: #008080;
}

.phone-color-option[data-theme="coral"] {
    background-color: #ff6b6b;
}

.phone-color-option[data-theme="indigo"] {
    background-color: #5c6bc0;
}

.phone-color-option[data-theme="mint"] {
    background-color: #4ecdc4;
}

.phone-color-option[data-theme="slate"] {
    background-color: #546e7a;
}


.app-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background-color: white;
    border-top: 1px solid #eee;
    transition: var(--transition);
    width: 100%;
    overflow: hidden;
}

.dark-theme .app-nav {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #777;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.dark-theme .nav-item {
    color: #aaa;
}

.dark-theme .nav-item.active {
    color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.2);
}

.nav-item:hover:not(.active) {
    background-color: #f0f0f0;
}

.dark-theme .nav-item:hover:not(.active) {
    background-color: #2a2a2a;
}

.widget {
    height: 100px;
    background-color: var(--primary-light);
    border-radius: 10px;
    margin-bottom: 15px;
    transform: translateX(0);
    animation: widget-slide 4s infinite alternate;
}

.widget:nth-child(2) {
    animation-delay: 0.2s;
}

.widget:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes widget-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-color);
    animation: fade 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.scroll {
    width: 4px;
    height: 8px;
    background-color: var(--gray-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
    margin-top: 8px;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

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

/* ===== ABOUT SECTION ===== */
.about {
    background-color: white;
    transition: var(--transition);
}

.dark-theme .about {
    background-color: #121212;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

/* Update the image-container styling */
.image-container {
    width: 280px;
    height: 350px;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update the blob-bg styling */
.blob-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-animation 8s infinite;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Add specific styling for the profile-image */
.profile-image {
    position: relative;
    width: 280px;
    height: 350px;
    margin: 0 auto;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 8px solid white;
}

.dark-theme .profile-image img {
    border-color: #1e1e1e;
}


.about-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    transition: var(--transition);
}

.dark-theme .about-card {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

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

.about-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.about-card .duration {
    font-style: italic;
    font-size: 0.8rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.download-btn:hover:before {
    left: 100%;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    color: white;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background-color: var(--light-color);
    transition: var(--transition);
}

.dark-theme .skills {
    background-color: #1a1a1a;
}

.skills-category {
    margin-bottom: 3rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

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

.skill-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark-theme .skill-card {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

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

.skill-card i, .skill-card svg {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.flutter-icon, .dart-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.plus {
    position: absolute;
    top: 1.5rem;
    left: 4rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.skill-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--primary-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: white;
    transition: var(--transition);
}

.dark-theme .projects {
    background-color: #121212;
}

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

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--gray-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-theme .project-card {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

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

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: var(--transition);
}

.dark-theme .no-image-placeholder {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.4) 100%);
}

.project-card:hover .no-image-placeholder {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-btn {
    padding: 0.6rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags span {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.dark-theme .project-tags span {
    background-color: rgba(33, 150, 243, 0.2);
    color: var(--primary-light);
}

.project-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-color);
}

.project-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background-color: var(--light-color);
    transition: var(--transition);
}

.dark-theme .experience {
    background-color: #1a1a1a;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-date {
    width: 48%;
    text-align: right;
    padding-right: 2rem;
}

.timeline-date h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-content {
    width: 48%;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .timeline-content {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

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

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

.timeline-content p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Experience bullets styling */
.experience-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-bullets li {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.2rem;
}

.dark-theme .experience-bullets li {
    color: var(--text-color);
}

.experience-bullets li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.experience-bullets li:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
    order: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    background-color: white;
    transition: var(--transition);
}

.dark-theme .certifications {
    background-color: #121212;
}

.cert-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.cert-slider::-webkit-scrollbar {
    display: none;
}

.cert-slide {
    min-width: 300px;
    transition: var(--transition);
}

.cert-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.dark-theme .cert-card {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

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

.cert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.flutter-icon-small {
    width: 3rem;
    height: 3rem;
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cert-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cert-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.dark-theme .prev-btn, 
.dark-theme .next-btn {
    background-color: #1e1e1e;
    border-color: #333;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.prev-btn:disabled, .next-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-color);
    transition: var(--transition);
}

.dark-theme .contact {
    background-color: #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .contact-item {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

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

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

.item-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.item-content p, .item-content a {
    color: var(--gray-color);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-links a i {
    font-size: 1.5rem; /* Increased from default size */
}

.dark-theme .social-links a {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dark-theme .contact-form {
    background-color: #1e1e1e;
    box-shadow: var(--shadow-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    background-color: transparent;
    color: var(--text-color);
    transition: var(--transition);
}

.dark-theme #contactForm input,
.dark-theme #contactForm textarea {
    border-color: #333;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover:before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
    color: white;
    transition: var(--transition);
}

.dark-theme .footer {
    background-color: #0a0a0a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-nav {
    flex: 1;
    min-width: 200px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: white;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

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

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a i {
    font-size: 1.5rem; /* Increased from default size */
}


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

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

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-dark);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.5rem;
    transition: var(--transition);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        padding-right: 0;
    }

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

    .about-content {
        flex-direction: column;
        gap: 3rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-date,
    .timeline-content {
        width: 100%;
        padding-left: 60px;
    }

    .timeline-date {
        text-align: left;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .timeline-item:nth-child(even) .timeline-date {
        order: 1;
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        order: 2;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
}



/* Phone UI Content Responsiveness */
.screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.dark-theme .screen {
    background-color: #121212;
}

/* App UI Content Scaling */
.app-ui {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    font-size: 14px; /* Base font size for app UI */
}

/* Scale font size based on device width */
@media screen and (max-width: 992px) {
    .app-ui {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .app-ui {
        font-size: 12px;
    }
}

@media screen and (max-width: 576px) {
    .app-ui {
        font-size: 11px;
    }
}

@media screen and (max-width: 375px) {
    .app-ui {
        font-size: 10px;
    }
}

/* App Bar */
.app-bar {
    height: 10%; /* Percentage-based height */
    max-height: 60px;
    min-height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

/* App Content */
.app-content {
    flex: 1;
    padding: 4%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

/* App Screen */
.app-screen {
    display: none;
    height: 100%;
    flex-direction: column;
    padding: 5%;
    background-color: white;
    color: var(--text-color);
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.dark-theme .app-screen {
    background-color: #121212;
    color: #f5f5f5;
}

.app-screen.active {
    display: flex;
}

/* App Header */
.app-header {
    margin-bottom: 0.8em;
}

.app-title {
    text-align: center;
}

.app-name {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
}

.app-subtitle {
    font-size: 0.9em;
    color: var(--gray-color);
}

/* Profile Container */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em 0;
    width: 100%;
    overflow: hidden;
}

.profile-image-wrapper {
    width: 45%; /* Percentage-based width */
    max-width: 160px;
    min-width: 100px;
    aspect-ratio: 1/1; /* Maintain square shape */
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
    animation: rotate 8s linear infinite;
    overflow: hidden;
}

.phone-profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    animation: counter-rotate 8s linear infinite;
}

.dark-theme .phone-profile-image {
    border-color: #121212;
}

/* Download Button */
.phone-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 0.8em 1.2em;
    border-radius: 50px;
    margin: 1.5em auto;
    width: 80%;
    font-weight: 500;
    font-size: 0.9em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Settings Options */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    width: 100%;
    overflow: hidden;
}

.settings-section {
    background-color: #f0f0f0;
    padding: 1em;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.dark-theme .settings-section {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

.settings-section h4 {
    margin-bottom: 0.8em;
    color: var(--text-color);
    font-size: 1em;
}

/* Theme Switch */
.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f0f0;
    border-radius: 30px;
    padding: 0.3em 0.8em;
    transition: var(--transition);
    max-width: 100%;
    box-sizing: border-box;
}

.dark-theme .theme-switch {
    background-color: #2a2a2a;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.3em 0.6em;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9em;
}

.theme-option i {
    font-size: 1em;
}

/* Phone Color Options */
.phone-color-options {
    display: flex;
    gap: 0.6em;
    flex-wrap: wrap;
}

.phone-color-option {
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

/* App Navigation */
.app-nav {
    display: flex;
    justify-content: space-around;
    padding: 0.6em 0;
    background-color: white;
    border-top: 1px solid #eee;
    transition: var(--transition);
    width: 100%;
    overflow: hidden;
}

.dark-theme .app-nav {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.nav-item {
    width: 2.5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #777;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.1em;
}


/* Device Container Responsiveness */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure minimum height */
}

.hero-blob {
    width: 450px;
    height: 450px;
    max-width: 90vw; /* Limit width on small screens */
    max-height: 90vw; /* Limit height on small screens */
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    animation: blob-animation 8s infinite;
    z-index: 1;
}

.device {
    width: 280px;
    height: auto; /* Let height adjust based on aspect ratio */
    aspect-ratio: 0.48; /* Maintain phone aspect ratio (width/height) */
    max-width: 80vw; /* Limit width on small screens */
    max-height: 80vh; /* Limit height on small screens */
    aspect-ratio: 0.48; /* Maintain phone aspect ratio */
    background-color: var(--dark-color);
    border-radius: 30px;
    box-shadow: var(--shadow-dark);
    padding: 10px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    z-index: 10;
    box-sizing: border-box;
}

@media screen and (max-width: 992px) {
    .device {
        width: 260px;
    }
}

@media screen and (max-width: 768px) {
    .device {
        width: 240px;
    }
}

@media screen and (max-width: 576px) {
    .device {
        width: 220px;
    }
    
    .hero-blob {
        width: 350px;
        height: 350px;
    }
}

@media screen and (max-width: 375px) {
    .device {
        width: 200px;
    }
    
    .hero-blob {
        width: 300px;
        height: 300px;
    }
}


/* Ensure all phone UI elements scale properly */
.app-portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
    height: 100%;
    justify-content: center;
}

/* Ensure text is readable at all sizes */
.app-screen * {
    word-break: break-word;
}

/* Make sure icons scale properly */
.app-ui i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure settings options are visible */
.settings-options {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 5px;
}

/* Ensure color options are visible */
.phone-color-options {
    justify-content: center;
}

/* ===== ENHANCED RESPONSIVE PROFILE IMAGE FIXES ===== */

/* Large Devices (1200px and up) */
@media screen and (min-width: 1200px) {
    .profile-image,
    .image-container {
        width: 300px;
        height: 380px;
    }
}

/* Tablet Portrait (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .profile-image,
    .image-container {
        width: 240px;
        height: 300px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        display: flex;
        justify-content: center;
    }
}

/* Mobile Landscape (576px to 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .profile-image,
    .image-container {
        width: 200px;
        height: 250px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .profile-image-wrapper {
        width: 100px;
        height: 130px;
    }
}

/* Mobile Portrait (up to 575px) */
@media screen and (max-width: 575px) {
    .profile-image,
    .image-container {
        width: 180px;
        height: 220px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .profile-image-wrapper {
        width: 80px;
        height: 110px;
    }
}

/* Extra small devices */
@media screen and (max-width: 375px) {
    .profile-image,
    .image-container {
        width: 150px;
        height: 190px;
    }
    
    .profile-image-wrapper {
        width: 70px;
        height: 95px;
    }
}
