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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0f0f23;
    overflow-x: hidden;
}

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

nav.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #64ffda;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ccd6f6;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
    overflow: hidden;
}

.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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.2s forwards;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.4s forwards;
}

.hero-content .description {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: slideUp 1s ease 0.6s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.8s forwards;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #64ffda;
    color: #0f0f23;
}

.btn-primary:hover {
    background: #4fc3a5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #64ffda;
    border: 2px solid #64ffda;
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Mobile Projects Section */
.mobile-projects {
    background: #112240;
}

.section-subtitle {
    text-align: center;
    color: #8892b0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mobile-card {
    background: #0f0f23;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid #233554;
    position: relative;
    overflow: hidden;
}

.mobile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-card:hover::before {
    opacity: 1;
}

.mobile-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #64ffda;
    box-shadow: 0 25px 50px rgba(100, 255, 218, 0.2);
}

.mobile-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 10000;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border-color: #64ffda;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mobile-frame {
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 10px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

/* .mobile-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    border-radius: 50%;
} */

.mobile-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.mobile-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  display: block;
}

.mock-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem;
    text-align: center;
    position: relative;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
}

.battery {
    width: 20px;
    height: 10px;
    border: 1px solid white;
    border-radius: 2px;
    position: relative;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 6px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 80%;
    height: 100%;
    background: white;
    border-radius: 1px;
}

.app-content {
    flex: 1;
    padding: 1rem 0.5rem;
    background: #f5f5f5;
    color: #333;
    overflow-y: auto;
}

/* Task App Styles */
.task-app .app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.task-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
}

.task-checkbox.checked {
    background: #667eea;
    border-color: #667eea;
}

.task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 0.7rem;
}

.task-item.completed span {
    text-decoration: line-through;
    color: #999;
}

.add-task {
    color: #667eea;
    text-align: center;
    padding: 1rem;
    border: 2px dashed #667eea;
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
}

/* Weather App Styles */
.weather-app .app-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.weather-main {
    text-align: center;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.temperature {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4facfe;
    margin-bottom: 0.25rem;
}

.location {
    color: #666;
    font-size: 0.7rem;
}

.weather-details {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

/* Finance App Styles */
.finance-app .app-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.balance-card {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1rem;
}

.balance-label {
    font-size: 0.6rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.expense-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expense-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.expense-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-amount {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.7rem;
}

/* Fitness App Styles */
.fitness-app .app-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1rem;
    font-weight: bold;
    color: #a8edea;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.6rem;
    color: #666;
}

.workout-section {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workout-title {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.workout-item {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

/* Recipe App Styles */
.recipe-app .app-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.recipe-featured {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-image {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.recipe-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.recipe-time {
    font-size: 0.7rem;
    color: #666;
}

.recipe-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-chip {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.6rem;
    color: #666;
    border: 1px solid #ddd;
}

.category-chip.active {
    background: #ff9a9e;
    color: white;
    border-color: #ff9a9e;
}

/* Language App Styles */
.language-app .app-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.progress-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #f093fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #f5576c;
    border-right-color: #f5576c;
    border-bottom-color: #f5576c;
    transform: rotate(270deg);
}

.progress-text {
    font-weight: bold;
    color: #f093fb;
}

.lesson-info {
    text-align: center;
    margin-bottom: 1rem;
}

.lesson-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.lesson-subtitle {
    font-size: 0.7rem;
    color: #666;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    background: #f093fb;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
}

.action-btn.secondary {
    background: white;
    color: #f093fb;
    border: 2px solid #f093fb;
}

.mobile-card-info {
    text-align: center;
}

.mobile-card-info h3 {
    color: #ccd6f6;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mobile-card-info p {
    color: #8892b0;
    font-size: 0.9rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #112240;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    border: 2px solid #64ffda;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

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

.modal-title {
    color: #ccd6f6;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #64ffda;
}

.modal-description {
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.modal-frame {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.floating-code {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    animation: float 6s ease-in-out infinite;
}

.code-icon {
    font-size: 8rem;
    color: #64ffda;
    opacity: 0.7;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: #ccd6f6;
    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: #64ffda;
}

/* About Section */
.about {
    background: #112240;
}

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

.about-text {
    color: #8892b0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    color: #64ffda;
    font-weight: 500;
}

.skill-item i {
    margin-right: 0.5rem;
    color: #64ffda;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #64ffda;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
}

/* Projects Section */
.projects {
    background: #0f0f23;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    color: #8892b0;
    border: 2px solid #233554;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    color: #64ffda;
    border-color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
}

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

.project-card {
    background: #112240;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #233554;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #64ffda;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    color: #ccd6f6;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: #8892b0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-link {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #64ffda;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: #112240;
    text-align: center;
}

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

.contact-text {
    color: #8892b0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    color: #4fc3a5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid #233554;
    border-radius: 50%;
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #64ffda;
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-5px);
    color: #64ffda;
}


/* Add these styles to your existing styles.css */

/* Modal Body Layout */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.modal-frame {
    display: flex;
    justify-content: center;
}

.modal-info {
    color: #8892b0;
}

.modal-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.modal-features {
    margin-bottom: 1.5rem;
}

.modal-features h4 {
    color: #ccd6f6;
    margin-bottom: 0.5rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.modal-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #64ffda;
}

.modal-gallery {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.modal-gallery h4 {
    color: #ccd6f6;
    margin-bottom: 1rem;
    text-align: center;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 8/16;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Footer */
footer {
    background: #0f0f23;
    padding: 2rem;
    text-align: center;
    color: #8892b0;
    border-top: 1px solid #233554;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 35, 0.98);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

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

    .hero-visual {
        order: -1;
        /* Move visual above text on mobile */
        margin-bottom: 2rem;
    }

    .floating-code {
        position: relative;
        /* Change from absolute to relative on mobile */
        width: 250px;
        height: 250px;
        margin: 0 auto;
        transform: none !important;
        /* Override any transform from JS */
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mobile-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mobile-frame {
        width: 160px;
        height: 320px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-frame .mobile-frame {
        width: 180px;
        height: 360px;
    }
}

.contact-info {
    flex-direction: column;
    align-items: center;
}


@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .floating-code {
        width: 200px;
        height: 200px;
        position: relative;
        margin: 0 auto 2rem auto;
    }

    .code-icon {
        font-size: 4rem;
    }

    .hero-visual {
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}