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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.1);
    width: auto;
    min-width: 400px;
    max-width: 90vw;
}

.floating-nav:hover {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.2);
    transform: translateX(-50%) translateY(-2px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.nav-link.active::before {
    opacity: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    overflow: visible;
    scroll-behavior: smooth;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 153, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
    margin-left: 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-outline:hover {
    background: #00d4ff;
    color: #fff;
    transform: translateY(-3px);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 45px;
    padding: 25px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: #333;
    border-radius: 4px;
}

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

.app-interface {
    padding: 50px 25px 25px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #fff;
}

.status-icons {
    display: flex;
    gap: 5px;
}

.app-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.phone-mockup-shadow {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 50px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(12px);
}

/* Skills Section */
.skills {
    padding: 80px 0 100px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    margin-top: 0;
    clear: both;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    margin-top: 40px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1));
    transition: left 0.3s ease;
    z-index: -1;
}

.skill-card:hover::before {
    left: 0;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.skill-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Page Titles */
.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Page */
.about-hero {
    padding: 120px 0 40px;
    text-align: center;
}

.about-intro {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.about-details {
    padding: 40px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.about-info p {
    margin-bottom: 20px;
    color: #c0c0c0;
    line-height: 1.8;
}

.cv-download {
    margin-top: 40px;
}

.cv-btn {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-image i {
    font-size: 5rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.profile-card p {
    color: #b0b0b0;
    margin-bottom: 30px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.technical-skills {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Projects Page */
.projects-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.projects-intro {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-mockup {
    position: relative;
}

.phone-mockup-small {
    width: 120px;
    height: 200px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.app-preview {
    padding: 20px 10px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.app-header-small {
    text-align: center;
    margin-bottom: 15px;
}

.app-title-small {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.app-content-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card-small {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
}

.product-image-small {
    width: 30px;
    height: 30px;
    background: #00d4ff;
    border-radius: 4px;
}

.product-info-small h4 {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 2px;
}

.product-info-small p {
    font-size: 0.6rem;
    color: #00d4ff;
}

.task-item-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
}

.task-checkbox {
    width: 12px;
    height: 12px;
    border: 1px solid #00d4ff;
    border-radius: 2px;
}

.task-text {
    font-size: 0.7rem;
    color: #fff;
}

.weather-info-small {
    text-align: center;
    color: #fff;
}

.weather-icon-small {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.weather-temp-small {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
}

.weather-desc-small {
    font-size: 0.7rem;
    color: #b0b0b0;
}

.post-item-small {
    display: flex;
    gap: 8px;
    padding: 5px;
}

.post-avatar-small {
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
}

.post-content-small {
    flex: 1;
}

.post-text-small {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 5px;
}

.post-actions-small {
    display: flex;
    gap: 10px;
    font-size: 0.6rem;
    color: #b0b0b0;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-info p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.projects-cta {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

/* Contact Page */
.contact-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info p {
    color: #c0c0c0;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-details p {
    color: #b0b0b0;
    margin: 0;
}

.social-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    transform: translateY(-3px);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-submit {
    width: 100%;
    justify-content: center;
}

.contact-cta {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: #888;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .phone-mockup {
        width: 280px;
        height: 580px;
    }
    
    .floating-nav {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
        text-align: center;
        border-radius: 10px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        margin-left: 0;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-nav {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        border-radius: 15px;
        padding: 10px 15px;
        min-width: auto;
        max-width: none;
    }
    
    .nav-container {
        position: relative;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .skill-card {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 520px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .floating-nav {
        top: 5px;
        left: 5px;
        right: 5px;
        padding: 8px 12px;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-card {
        padding: 25px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .about-grid {
        gap: 30px;
    }
    
    .contact-grid {
        gap: 30px;
    }
    
    .contact-method {
        padding: 15px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .projects-grid {
        gap: 25px;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    .project-info {
        padding: 20px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-link, .btn, .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better text readability on mobile */
    .hero-description, .about-info p, .contact-info p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Improve form inputs on mobile */
    .form-group input, .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 16px;
    }
    
    /* Better spacing for mobile */
    .hero {
        min-height: 90vh;
    }
    
    .skills, .about-details, .contact-section, .projects-grid-section {
        padding: 60px 0;
    }
    
    /* Improve phone mockup visibility on mobile */
    .phone-mockup {
        margin: 0 auto;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 30px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-frame, .phone-mockup-small {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    }
}