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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.primary-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    z-index: 1001;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.typing-text {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.typing-subtext {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

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

.hero-buttons .btn {
    min-width: 160px;
    justify-content: center;
}

.hero-image {
    position: relative;
}

.code-snippet {
    background-color: var(--code-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.code-snippet pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--code-text);
}

.code-snippet code {
    display: block;
    white-space: pre;
    overflow-x: auto;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    width: auto;
    text-align: center;
}

.scroll-indicator span {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: block;
}

.scroll-indicator i {
    font-size: 1.5rem;
    display: block;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%232c3e50" opacity="0.05"/></svg>');
    opacity: 0.5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.about-image-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.about-image {
    width: 75%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.social-profiles-container {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.social-profiles-container h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    text-align: center;
    position: relative;
}

.profile-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 auto;
}

.profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--light-bg);
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-link:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.profile-link:hover i {
    transform: scale(1.1);
}

.profile-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
}

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

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background-color: var(--light-bg);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 1rem;
}

/* Certificates Section */
.certificates {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

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

.certificate-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.certificate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.certificate-info .date {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.skills-content h3, .interests h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.skills-content h3::after, .interests h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
    border-radius: 2px;
}

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

.skill-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.07);
    padding: 2rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.skill-card h4 {
    color: #3498db;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.skill-card ul {
    list-style: disc inside;
    color: #333;
    font-size: 1rem;
    padding-left: 0;
}

.skill-card li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-color);
    font-size: 0.95rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

/* Contact Form Styles */
.contact-form-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.contact-form-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .typing-text {
        font-size: 3rem;
    }
    
    .typing-subtext {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-top: 2rem;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-container {
        order: -1;
        text-align: center;
    }
    
    .about-image {
        margin: 0 auto;
    }
    
    .skills-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .nav-content {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        transition: 0.5s ease;
        gap: 1rem;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .nav-links li:not(:last-child)::after {
        content: '';
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 40%;
        height: 2px;
        background: rgba(255,255,255,0.15);
        border-radius: 2px;
        margin: 0 auto;
    }
    .nav-links a {
        font-size: 1.4rem;
        color: white;
        text-decoration: none;
        position: relative;
        padding: 0.7rem 1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-links a:hover {
        color: var(--secondary-color);
    }
    
    .nav-links a:hover::after {
        width: 100%;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
        padding: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
        border-radius: 3px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Add animation delay for menu items */
    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }
    .nav-links a:nth-child(6) { transition-delay: 0.6s; }
    
    .typing-text {
        font-size: 2.5rem;
    }
    
    .typing-subtext {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image-container {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image {
        order: 1;
        margin: 0 auto;
        width: 60%;
    }
    
    .about-stats {
        order: 2;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-profiles-container {
        order: 3;
    }
    
    .skills-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-content {
        padding: 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    
    .hamburger span {
        width: 25px;
    }
    
    .typing-text {
        font-size: 2rem;
    }
    
    .typing-subtext {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .about-image {
        width: 80%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-links {
        grid-template-columns: 1fr;
    }
    
    .profile-link {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    .code-snippet {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
        max-width: 100vw;
        width: 100%;
        margin: 0 auto 1.5rem auto;
        border-radius: 8px;
        overflow-x: auto;
        box-sizing: border-box;
        word-break: break-word;
    }
    .code-snippet pre,
    .code-snippet code {
        font-size: 0.95rem;
        white-space: pre-line;
        word-break: break-word;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
    }
}

@media (max-width: 360px) {
    .typing-text {
        font-size: 1.8rem;
    }
    
    .typing-subtext {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .code-snippet {
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    .code-snippet pre,
    .code-snippet code {
        font-size: 0.8rem;
        white-space: pre-line;
    }
}

/* Fix for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px;
    }
    
    .nav-links {
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Fix for tablets in portrait mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        max-width: 600px;
        margin: 2rem auto 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Fix for tablets in landscape mode */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.certificate-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles for Contact Section */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 576px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Remove old skills and interests grid/card styles */
.skills-content,
.skills-content h3,
.skills-content h3::after,
.interests h3,
.interests h3::after,
.skills-grid,
.interests-grid,
.skill-item,
.interest-item,
.skill-item::before,
.interest-item::before,
.skill-item:hover,
.interest-item:hover,
.skill-item:hover::before,
.interest-item:hover::before,
.skill-item i,
.interest-item i,
.skill-item:hover i,
.interest-item:hover i,
.skill-item span,
.interest-item span {
    display: none !important;
}

/* Add these styles after the navbar styles */
.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
} 