html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Dark Mode Button in Navbar */
.navbar .form-check-input {
    margin: 0;
}

.navbar .form-check-label {
    margin: 0;
}

@media (max-width: 571px) {
    .dark-mode-row {
        position: relative;
        left: 1%; 
    
    }
}

/* Landing Page */
.landing-container {
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow: hidden;
}


.floating-head {
    width: 250px;
    padding-left: 20%;
}

.title-row {
    font-size: 30px;
    padding-left: 10%;
    padding-right: 10%;
    position: relative;
    top: 25%;
    left: 1%
}


.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 3px solid #42494F;;
}

@media (max-width: 1050px) {
    .title-row{
        position: relative;
        top: 20%;
    }
    .floating-head{
        width: 150px ;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .title-row {
        top: 0;
        left: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
    }
    .floating {
        padding-left: 0;
        padding-right: 0;
        padding-top: 1rem;
    }
    .text-column {
        border-left: none;
        align-items: center;
    }
    .text-column h1,
    .text-column p {
        padding-right: 0;
    }
}

/* Text Animation */
.typing-text-row {
    font-family: 'Raleway', sans-serif;
    top: 30%;
    position: relative;
}

.typing-text-col{
    display: flex;
    justify-content: center;
}

/* About Me */
.aboutme-title-row h4 {
    text-decoration: underline;
}

#aboutme {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 325px; 
    font-size: large;
}

@media (max-width: 570px) {
    #aboutme {
        font-size: small;
        padding-left: 10%;
        padding-right: 10%;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 450px) {
    #aboutme {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding-left: 5%;
        padding-right: 5%;
    }
}

  #pills-tab {
    text-align: center;
  }

  .skill-languages .col {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}

.resume-section {
    width: 55%;
}

.resume-pdf-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
}

.resume-pdf-container iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: none;
    background: #f8f9fa;
}

@media (max-width: 1200px) {
    .resume-pdf-container iframe {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .resume-pdf-container iframe {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .resume-section {
        width: 100%;
        padding: 0;
    }
    
    .resume-pdf-container iframe {
        height: 400px;
    }
}


/* Education */
.education-scroll-custom {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    border: 1px solid #42494F;
}

@media (max-width: 570px) {
    .education-scroll-custom {
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
        border: 0px;
    }
  }

.university-logo {
    width: 300px;
}

#education {
    margin-left: auto;
    margin-right: auto;
    margin-top: 320px;
    margin-bottom: 325px; 
    font-size: large;
}

@media (max-width: 767px) {
    #education {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 325px; 
        font-size: small;
    }
    .university-logo {
        display: flex;
        justify-content: center;
    }

  }

  @media (max-width: 607px) {
    #education {
        margin-left: auto;
        margin-right: auto;
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: 325px; 
        font-size: small;
    }
    .university-logo {
        display: flex;
        justify-content: center;
    }

  }

  #education-col{
    border-right: 1.5px solid #42494F;
  }

  #logo-col {
    border-left: 1.5px solid #42494F;
  }

  @media (max-width: 549px) {
    #education-col {
        border: none;
    }
    #logo-col{
        border: none;
    }

  }

  /* Featured Projects */


/* Contact */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 125px; 
    font-size: large;
}

#row-icon {
    width: 20%;
}

@media (max-width: 825px) {
    #row-icon {
        width: 40%;
    }
}

@media (max-width: 477px) {
#row-icon {
    width: 80%;
}
}

/* Modern Hero Section Styles */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: flex-start;
    padding-top: 8vh;
    padding-bottom: 2rem;
}

.hero-text {
    color: white;
    padding: 1rem 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #e0e7ff;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #c7d2fe;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #c7d2fe;
    margin-top: 0.25rem;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon i {
    font-size: 2rem;
}

.floating-icon:nth-child(1) {
    top: 5%;
    left: -15%;
}

.floating-icon:nth-child(2) {
    top: 15%;
    right: -15%;
}

.floating-icon:nth-child(3) {
    bottom: 15%;
    left: -10%;
}

.floating-icon:nth-child(4) {
    bottom: 5%;
    right: -10%;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 5vh;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .floating-head {
        width: 200px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
    
    .floating-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding-top: 4vh;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .floating-head {
        width: 175px;
    }
}

@media (max-width: 450px) {
    .landing-container {
        min-height: 100vh;
        height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding-top: 3vh;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }
    
    .hero-text {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
        width: 200px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .floating-head {
        width: 150px;
        margin-top: 1rem;
    }
    
    .floating-icon {
        width: 30px;
        height: 30px;
    }
    
    .floating-icon i {
        font-size: 1rem;
    }
    
    .floating-icon:nth-child(1) {
        top: 2%;
        left: -20%;
    }
    
    .floating-icon:nth-child(2) {
        top: 12%;
        right: -20%;
    }
    
    .floating-icon:nth-child(3) {
        bottom: 12%;
        left: -15%;
    }
    
    .floating-icon:nth-child(4) {
        bottom: 2%;
        right: -15%;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-arrow {
        width: 30px;
        height: 30px;
    }
}
