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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 50%, #fefce8 100%);
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #e9d5ff;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9d5ff;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
}

.nav-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
    border-color: #9333ea;
}

.nav-link-cta {
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    color: white;
    border: none;
}

/* Hero Section */
.hero-section {
    padding: 8rem 1.5rem 5rem;
}

.hero-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    border: 8px solid #e9d5ff;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-bg-circle {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    transition: transform 0.1s ease-out;
}

.hero-bg-circle-1 {
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #e9d5ff 0%, #dbeafe 100%);
}

.hero-bg-circle-2 {
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #fef3c7 0%, #e9d5ff 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
    border-radius: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hero-badge span {
    color: #7c3aed;
    font-weight: 600;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.hero-subtitle {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-subtitle.visible {
    opacity: 1;
}

.hero-description {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2rem;
    max-width: 48rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    border: 4px solid #e9d5ff;
    color: #9333ea;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-contact {
    background: white;
    color: #9333ea;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Section Styles */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* About Section */
.about-section {
    padding: 5rem 1.5rem;
}

.about-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    border: 8px solid #dbeafe;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-box {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-box-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
    border: 4px solid #e9d5ff;
}

.about-box-yellow {
    background: linear-gradient(135deg, #fefce8 0%, #faf5ff 100%);
    border: 4px solid #fef3c7;
}

.icon-large {
    width: 3rem;
    height: 3rem;
    color: #9333ea;
    margin-bottom: 1rem;
}

.about-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.about-box p {
    color: #374151;
    line-height: 1.8;
}

.education-box {
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 50%, #fefce8 100%);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 4px solid #dbeafe;
}

.education-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.education-title {
    font-weight: 600;
    color: #9333ea;
    margin-bottom: 0.5rem;
}

.education-title-blue {
    color: #2563eb;
}

.education-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.cert-list {
    list-style: none;
    font-size: 0.875rem;
    color: #374151;
}

.cert-list li {
    margin-bottom: 0.25rem;
}

.cert-list li:before {
    content: "• ";
    color: #9333ea;
    font-weight: bold;
}

/* Skills Section */
.skills-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
}

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

.skill-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 4px solid #e9d5ff;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover,
.skill-card.hovered,
.skill-card.touched {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.skill-header {
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.skill-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: capitalize;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.skill-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Projects Section */
.projects-section {
    padding: 5rem 1.5rem;
}

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

.project-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 4px solid #fef3c7;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover,
.project-card.hovered,
.project-card.touched {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.project-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #f3e8ff 100%);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #7c3aed;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.project-card p {
    color: #374151;
    margin-bottom: 1rem;
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #9333ea;
    border: 2px solid #e9d5ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Experience Section */
.experience-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #faf5ff 0%, #fefce8 100%);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 4px solid #dbeafe;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-card:hover,
.experience-card.touched {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.experience-company {
    font-size: 1.125rem;
    color: #9333ea;
    font-weight: 600;
}

.experience-period {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: #7c3aed;
    font-weight: 600;
}

.achievement-list {
    list-style: none;
}

.achievement-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.achievement-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    border: 8px solid #e9d5ff;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-text {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    background: white;
    border-top: 4px solid #e9d5ff;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.05);
}

.footer-content {
    text-align: center;
}

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

.social-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 1.5rem;
    color: #9333ea;
}

.footer-text {
    color: #6b7280;
}

/* Keyboard Navigation */
body.keyboard-nav *:focus {
    outline: 3px solid #9333ea;
    outline-offset: 2px;
}

/* Responsive Design */

/* Extra Large Screens (Mac 27" and larger) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

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

    .hero-subtitle {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.375rem;
    }

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

/* Large Laptops (MacBook Pro 16", 1440px+) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1280px;
    }

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

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

/* Standard Laptops (MacBook Pro 13"/14", 1280px-1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }

    .hero-card {
        padding: 2.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* MacBook Air / Small Laptops (1024px-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        max-width: 960px;
    }

    .hero-card {
        padding: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.625rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets Landscape (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0.875rem 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .hero-section {
        padding: 7rem 1rem 4rem;
    }

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

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

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

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

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 2.5rem 2rem;
    }
}

/* Tablets Portrait & Large Phones (600px-767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero-section {
        padding: 8rem 1rem 3rem;
    }

    .hero-card {
        padding: 2rem 1.25rem;
        border: 6px solid #e9d5ff;
    }

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

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

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

    .about-section,
    .skills-section,
    .projects-section,
    .experience-section,
    .contact-section {
        padding: 3.5rem 1rem;
    }

    .about-card {
        padding: 1.75rem;
        border: 6px solid #dbeafe;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-box {
        padding: 1.5rem;
    }

    .education-box {
        padding: 1.5rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.25rem;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
        border: 6px solid #e9d5ff;
    }

    .contact-buttons {
        width: 100%;
    }

    .contact-buttons .btn {
        width: 100%;
    }
}

/* Mobile Phones (375px-599px) */
@media (min-width: 375px) and (max-width: 599px) {
    .container,
    .container-small {
        padding: 0 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .nav-brand {
        font-size: 1.375rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.813rem;
        flex: 1;
        text-align: center;
        min-width: auto;
    }

    .hero-section {
        padding: 8rem 0.75rem 2.5rem;
    }

    .hero-card {
        padding: 1.75rem 1rem;
        border: 4px solid #e9d5ff;
        border-radius: 1.25rem;
    }

    .hero-badge {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.938rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.813rem 1.25rem;
        font-size: 0.938rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .experience-section,
    .contact-section {
        padding: 3rem 0.75rem;
    }

    .about-card {
        padding: 1.5rem 1rem;
        border: 4px solid #dbeafe;
        border-radius: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-box {
        padding: 1.25rem;
        border-radius: 0.875rem;
    }

    .about-box h3 {
        font-size: 1.25rem;
    }

    .icon-large {
        width: 2.5rem;
        height: 2.5rem;
    }

    .education-box {
        padding: 1.25rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1rem;
        border: 3px solid #e9d5ff;
    }

    .skill-header {
        padding: 0.75rem;
    }

    .skill-header h3 {
        font-size: 1.125rem;
    }

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

    .project-card {
        padding: 1.25rem;
        border: 3px solid #fef3c7;
    }

    .project-card h3 {
        font-size: 1.25rem;
    }

    .experience-list {
        gap: 1rem;
    }

    .experience-card {
        padding: 1.25rem;
        border: 3px solid #dbeafe;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .experience-header h3 {
        font-size: 1.25rem;
    }

    .experience-company {
        font-size: 1rem;
    }

    .experience-period {
        padding: 0.375rem 0.75rem;
        font-size: 0.813rem;
        align-self: flex-start;
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
        border: 4px solid #e9d5ff;
        border-radius: 1.25rem;
    }

    .contact-title {
        font-size: 1.125rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-buttons {
        width: 100%;
    }

    .contact-buttons .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .social-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .social-icon i {
        font-size: 1.375rem;
    }
}

/* Small Mobile Phones (320px-374px) */
@media (max-width: 374px) {
    .container,
    .container-small {
        padding: 0 0.75rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 0.625rem;
        padding: 0.75rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.75rem;
        flex: 1 1 45%;
        text-align: center;
    }

    .hero-section {
        padding: 7.5rem 0.5rem 2rem;
    }

    .hero-card {
        padding: 1.5rem 0.875rem;
        border: 3px solid #e9d5ff;
        border-radius: 1rem;
    }

    .hero-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.813rem;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .experience-section,
    .contact-section {
        padding: 2.5rem 0.5rem;
    }

    .about-card,
    .skill-card,
    .project-card,
    .experience-card,
    .contact-card {
        border-width: 3px;
        border-radius: 1rem;
    }

    .about-card,
    .contact-card {
        padding: 1.25rem 0.875rem;
    }

    .about-box,
    .education-box {
        padding: 1rem;
    }

    .skill-card,
    .project-card,
    .experience-card {
        padding: 1rem;
    }

    .skill-header,
    .project-badge,
    .experience-period {
        padding: 0.625rem;
        font-size: 0.75rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .social-icon i {
        font-size: 1.25rem;
    }
}

/* Landscape Mode Optimization for Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 6rem 1rem 2rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.938rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .experience-section,
    .contact-section {
        padding: 2.5rem 1rem;
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .hero-card,
    .about-card,
    .skill-card,
    .project-card,
    .experience-card,
    .contact-card {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }
}