/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;      /* Sky blue */
    --secondary-color: #0284c7;     /* Darker sky blue */
    --accent-color: #38bdf8;        /* Light sky blue */
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #4b5563;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 80px 20px 40px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    word-wrap: break-word;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    word-wrap: break-word;
}

.hero-buttons {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

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

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

.hero-social {
    animation: fadeInUp 1s ease 0.8s;
    animation-fill-mode: both;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white);
    font-size: 1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

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

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

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* Personal Info Section */
.personal-info {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #0ea5e915 0%, #0284c715 100%);
    border-radius: 10px;
    overflow: hidden;
}

.personal-info h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    word-wrap: break-word;
}

.personal-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    word-wrap: break-word;
    overflow: hidden;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.1);
}

.info-item i {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item strong {
    color: var(--dark-color);
    margin-right: 0.3rem;
    flex-shrink: 0;
}

.info-item span {
    word-break: break-word;
    flex: 1;
}

/* Education Section */
.education-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #0ea5e908 0%, #0284c708 100%);
    border-radius: 10px;
    overflow: hidden;
}

.education-section h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    word-wrap: break-word;
}

.education-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.education-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.1);
}

.edu-badge {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.edu-details {
    flex: 1;
    word-wrap: break-word;
}

.edu-details h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    word-wrap: break-word;
}

.institution {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
}

.duration {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    background: #10b981;
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Experience Section */
.experience-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #0ea5e908 0%, #0284c708 100%);
    border-radius: 10px;
    overflow: hidden;
}

.experience-section h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    word-wrap: break-word;
}

.experience-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.experience-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.1);
}

.exp-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.exp-details {
    flex: 1;
    word-wrap: break-word;
}

.exp-details h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    word-wrap: break-word;
}

.company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
}

/* Highlights Section */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 2rem 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    transition: var(--transition);
    color: var(--white);
    overflow: hidden;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.highlight-box i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.highlight-box h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    word-wrap: break-word;
}

/* ===== PREVIEW SECTION ===== */
.preview {
    padding: 80px 0;
    background: var(--white);
}

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

.preview-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.preview-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.preview-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.preview-card p {
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.preview-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    word-wrap: break-word;
    display: inline-block;
}

/* ===== PROJECTS PAGE ===== */
.page-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: var(--white);
    text-align: center;
    padding: 120px 20px 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.page-header p {
    word-wrap: break-word;
}

.projects-section {
    padding: 80px 0;
    background: var(--light-color);
}

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

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.project-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.project-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.project-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.project-card p {
    flex-grow: 1;
    word-wrap: break-word;
}

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

.project-tech span {
    background: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    word-wrap: break-word;
}

.project-links {
    margin-top: 1.5rem;
}

.project-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    word-wrap: break-word;
}

.project-github:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.project-github i {
    font-size: 1rem;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-section {
    padding: 80px 0;
    background: var(--white);
}

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

.cert-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.cert-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.cert-card p {
    word-wrap: break-word;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: 80px 0;
    background: var(--light-color);
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.skill-items {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    word-wrap: break-word;
}

.skill-bar {
    height: 10px;
    background: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    transition: var(--transition);
    word-wrap: break-word;
    text-align: center;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.contact-info h3 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    overflow: hidden;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
    word-wrap: break-word;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
}

.contact-item p {
    word-wrap: break-word;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.contact-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.contact-form h3 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    word-wrap: break-word;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 16px; /* Prevents zoom on mobile */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    display: none;
    word-wrap: break-word;
}

.form-message.success {
    display: block;
    background: #10b981;
    color: var(--white);
}

.form-message.error {
    display: block;
    background: #ef4444;
    color: var(--white);
}

/* ===== REFERENCES SECTION ===== */
.references-section {
    padding: 80px 0;
    background: var(--light-color);
}

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

.reference-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

.reference-card:hover {
    transform: translateY(-5px);
}

.reference-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reference-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.reference-card p {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.reference-card i.fa-envelope {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    word-wrap: break-word;
    padding: 0 15px;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: var(--transition);
    display: inline-block;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== TOOLTIP ===== */
.social-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

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

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 100px 15px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 250px;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-header {
        padding: 100px 15px 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }

    .about-content {
        padding: 1.5rem;
    }

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

    .info-item {
        padding: 0.8rem;
        word-break: break-word;
    }

    .education-card,
    .experience-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .edu-badge,
    .exp-icon {
        margin: 0 auto;
    }

    .personal-info h3::after,
    .education-section h3::after,
    .experience-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .personal-info h3,
    .education-section h3,
    .experience-section h3 {
        text-align: center;
    }

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

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

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .preview-card {
        padding: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

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

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

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item i {
        margin: 0 auto 10px;
    }

    .skill-items {
        padding: 1.5rem;
    }

    .skill-tag {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }

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

    .about-content {
        padding: 1rem;
    }

    .personal-info,
    .education-section,
    .experience-section {
        padding: 1rem;
    }

    .info-item {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .info-item i {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .edu-badge,
    .exp-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .edu-details h4,
    .exp-details h4 {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 1.5rem 1rem;
    }

    .highlight-box i {
        font-size: 2rem;
    }

    .highlight-box h4 {
        font-size: 1rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-icon {
        width: 50px;
        height: 50px;
    }

    .project-icon i {
        font-size: 1.5rem;
    }

    .project-tech span {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .cert-card {
        padding: 1.5rem;
    }

    .cert-card i {
        font-size: 2rem;
    }

    .cert-card h4 {
        font-size: 1rem;
    }

    .reference-card {
        padding: 1.5rem;
    }

    .reference-card i {
        font-size: 2.5rem;
    }

    .reference-card h4 {
        font-size: 1.1rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .skill-tag {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .scroll-top {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }

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

    .hero-scroll {
        display: none;
    }
}

/* Fix for very small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item i {
        margin: 0 auto 5px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for iOS input zoom */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
    select,
    textarea,
    input {
        font-size: 16px !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .scroll-top,
    .footer-social,
    .btn {
        display: none !important;
    }

    body {
        color: #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .hero {
        background: none;
        color: #000;
        min-height: auto;
        padding: 20px 0;
    }

    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: #000;
    }

    .section-title::after {
        background: #000;
    }
}.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: Arial;
    z-index: 2000;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

.chat-box {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
}

.bot-message {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-message {
    background: #0ea5e9;
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: right;
}

.chat-input {
    display: flex;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}