@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Background gradients */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(199, 125, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 110, 199, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(199, 125, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 4%; 
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff6ec7, #c77dff);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotate(180deg);
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #c77dff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6ec7, #c77dff);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.contact-nav-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6ec7, #c77dff);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 125, 255, 0.3);
}

/* About Section */
 .about-me-title{
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #c77dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

 }


.about-content{
    border-radius: 30px;
    background-color: #221031;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
}

.about-image{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

#about-me-description {
    display: none;
    
}

#typed {
    font-size: 18px;
    line-height: 1.7;
    color: rgb(202, 137, 255);
    font-weight: 400;
    
}
/* Hero Section */
.hero {
    padding: 120px 5% 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(199, 125, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 30px;
}

.welcome-badge span {
    color: #c77dff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #ff6ec7 50%, #c77dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
}

.btn-primary {
    padding: 14px 35px;
    background: linear-gradient(135deg, #ff6ec7, #c77dff);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 125, 255, 0.3);
}

/* Hero Image Section */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(199, 125, 255, 0.3) 0%, transparent 70%);
    filter: blur(100px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.profile-image-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.profile-image-container img {
    width: 115%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scaleX(-1);
}



/* Certifications Section (reusing .services styles) */
.certifications {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(199, 125, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 20px;
}

.section-badge span {
    color: #c77dff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #c77dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 35px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6ec7, #c77dff);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(199, 125, 255, 0.3);
    box-shadow: 0 20px 40px rgba(199, 125, 255, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(199, 125, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 24px;
    background: linear-gradient(135deg, #ff6ec7, #c77dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}
.service-card .mentor-name {
    color: #ff6ec7;
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

/* Projects Section */
.projects {
    padding: 100px 5%;
    position: relative;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(199, 125, 255, 0.3);
    box-shadow: 0 20px 40px rgba(199, 125, 255, 0.2);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.2), rgba(255, 110, 199, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 15px;
}

#on-progress {
    cursor: not-allowed;
    background: rgb(51, 200, 6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
}

#youtube-btn {
    background: rgb(255, 0, 0);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.project-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    padding: 10px 12px;
    background: rgba(199, 125, 255, 0.1);
    border-radius: 15px;
    color: #c77dff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #c77dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: rgba(199, 125, 255, 0.3);
    transform: translateX(10px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(199, 125, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 18px;
    color: #c77dff;
}

.contact-text h4 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-text a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #c77dff;
}

.contact-form {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(199, 125, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6ec7, #c77dff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 125, 255, 0.3);
}

/* Footer */
footer {
    padding: 50px 5%;
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, #ff6ec7, #c77dff);
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Study Section */
.study-info {
    padding: 100px 5%;
    position: relative;
}

.study-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.study-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 35px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    min-width: 350px;
    width: 100%;
    max-width: 600px;
}

.study-card:hover {
    transform: translateY(-10px);
    border-color: rgba(199, 125, 255, 0.3);
    box-shadow: 0 20px 40px rgba(199, 125, 255, 0.15);
}

.study-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
}

.study-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.study-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.study-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.study-detail {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.study-specialization {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.study-period {
    font-size: 14px;
    color: #c77dff;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(199, 125, 255, 0.1);
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

/* IMPROVED RESPONSIVE DESIGN */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .hero-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img-wrapper {
        height: 500px;
    }

    .profile-image-container {
        max-width: 350px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .study-container {
        flex-direction: column;
        align-items: center;
    }
    
    .study-card {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-nav-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 5% 60px;
        min-height: auto;
    }

    .hero-container {
        gap: 30px;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        margin-bottom: 40px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .hero-img-wrapper {
        height: 400px;
    }

    .profile-image-container {
        max-width: 280px;
    }

    .profile-image-container img {
        width: 100%;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }

    /* Sections padding */
    .certifications,
    .projects,
    .contact,
    .study-info {
        padding: 60px 5%;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Services/Cards */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-content {
        padding: 25px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 13px;
    }

    /* Contact */
    .contact-container {
        gap: 40px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    /* Study Section */
    .study-card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
        min-width: auto;
        width: 100%;
    }
    
    .study-icon {
        margin-right: 0;
        margin-bottom: 0;
        width: 70px;
        height: 70px;
    }

    .study-content {
        align-items: center;
        text-align: center;
    }

    .study-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .study-detail {
        font-size: 15px;
    }

    .study-specialization {
        font-size: 14px;
    }

    .study-period {
        font-size: 13px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 25px;
        height: 25px;
    }

    .contact-nav-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    /* Hero */
    .hero {
        padding: 80px 5% 40px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .welcome-badge {
        padding: 6px 16px;
        margin-bottom: 20px;
    }

    .welcome-badge span {
        font-size: 11px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 30px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 13px;
        justify-content: center;
    }

    .hero-img-wrapper {
        height: 350px;
    }

    .profile-image-container {
        max-width: 250px;
    }

    /* Background glow adjustment for mobile */
    .hero-bg-glow {
        width: 300px;
        height: 300px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .section-badge {
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .section-badge span {
        font-size: 10px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Sections */
    .certifications,
    .projects,
    .contact,
    .study-info {
        padding: 50px 5%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Service cards */
    .service-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .service-icon i {
        font-size: 20px;
    }

    .service-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    /* Project cards */
    .project-card {
        border-radius: 15px;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 20px;
    }

    .project-category {
        font-size: 11px;
        padding: 4px 10px;
    }

    .project-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .project-description {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .project-overlay-btn {
        padding: 10px 20px;
        font-size: 12px;
        margin-top: 10px;
    }

    .tech-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Contact section */
    .contact-container {
        gap: 30px;
    }

    .contact-info p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .contact-item {
        padding: 15px;
        gap: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon i {
        font-size: 16px;
    }

    .contact-text h4 {
        font-size: 12px;
    }

    .contact-text a {
        font-size: 14px;
    }

    .contact-form {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Study section */
    .study-card {
        padding: 25px 15px;
        border-radius: 15px;
        gap: 15px;
    }

    .study-icon {
        width: 60px;
        height: 60px;
    }

    .study-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .study-detail {
        font-size: 14px;
    }

    .study-specialization {
        font-size: 13px;
    }

    .study-period {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Footer */
    footer {
        padding: 30px 5%;
    }

    .social-links {
        gap: 15px;
        margin-bottom: 20px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .footer-text {
        font-size: 13px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero {
        padding: 70px 3% 30px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-img-wrapper {
        height: 300px;
    }

    .profile-image-container {
        max-width: 220px;
    }

    .certifications,
    .projects,
    .contact,
    .study-info {
        padding: 40px 3%;
    }

    .service-card,
    .project-content,
    .contact-form,
    .study-card {
        padding: 20px 15px;
    }

    .section-title,
    .contact-info h2 {
        font-size: 1.6rem;
    }

    .services-grid,
    .projects-grid {
        gap: 15px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 5% 40px;
        min-height: auto;
    }

    .hero-img-wrapper {
        height: 300px;
    }

    .profile-image-container {
        max-width: 200px;
    }

    .hero-bg-glow {
        width: 250px;
        height: 250px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none;
    }
    
    .hero-bg-glow {
        animation: none;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: light) {
    /* Bisa ditambahkan light mode styles jika diperlukan */
}