/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3178c6;
    --primary-gradient: linear-gradient(to right, #3178c6 0%, #1e88e5 100%);
    --secondary-color: #4a5eb3;
    --text-color: #4a5568;
    --light-text: #a0aec0;
    --background-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --section-padding: 80px 0;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for responsive typography */
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents image gaps */
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    color: var(--secondary-color);
}

.RB {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.secondary-btn {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.small-btn {
    padding: 8px 15px;
    font-size: 14px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.RB {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    width: 40px;
    height: 40px;
    background-color: #e8f0ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    -webkit-text-fill-color: white;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
    color: var(--secondary-color);
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a i {
    font-size: 14px;
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover i,
.nav-links li a.active i {
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn__burger {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 249, 252, 0.9) 100%), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-1.2.1&auto=format&fit=crop&w=2250&q=80') no-repeat center center/cover;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.typed-text {
    font-weight: 600;
    color: var(--secondary-color);
}

.typed-cursor {
    font-weight: 600;
    color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-text {
    flex: 2;
}

.about-details {
    margin: 20px 0;
}

.detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail i {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

/* Education Timeline */
.education {
    background-color: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    border-radius: 3px;
}

.timeline-item {
    padding: 15px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background: white;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-icon i {
    color: var(--primary-color);
}

.timeline-content {
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-date {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 10px;
    display: block;
}

/* Skills Section */
.skills {
    background-color: white;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 22px;
    color: var(--secondary-color);
    text-align: center;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.skill-icon i {
    font-size: 30px;
    color: white;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    margin-bottom: 10px;
}

.skill-level {
    height: 8px;
    background-color: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
}

/* Projects Section */
.projects {
    background-color: var(--background-color);
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.project-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-img {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.project-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: #edf2f7;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links .small-btn {
    flex: 1;
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 20px;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-form {
    flex: 1.5;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Footer */
footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.footer-logo .RB {
    margin-bottom: 15px;
}

.footer-logo p {
    color: #9aa8e8;
    font-size: 14px;
}

.footer-links h3, .footer-social h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
}

.footer-bottom .fas.fa-heart {
    color: #ff5e5e;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after, .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a {
        padding-left: 0;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
    
    .project-content {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-img, .about-text {
        width: 100%;
    }
    
    .img-placeholder {
        margin-bottom: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-icon {
        left: 11px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-icon {
        left: 11px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .hero-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 50px 0;
        gap: 20px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        font-size: 18px;
    }
    
    .menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero {
        height: auto;
        min-height: 450px;
    }
    
    .hero-content {
        width: 95%;
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 25px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .project-img {
        height: 180px;
    }
    
    .skill-grid {
        gap: 20px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 15px;
        width: 100%;
    }
    
    .form-group input, .form-group textarea {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .cta-buttons .primary-btn, .cta-buttons .secondary-btn {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .img-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .img-placeholder img {
        object-position: top center;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .img-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Menu Button Animation */
@media (max-width: 768px) {
    .menu-btn.open .menu-btn__burger {
        background: transparent;
    }
    
    .menu-btn.open .menu-btn__burger::before {
        transform: rotate(45deg);
    }
    
    .menu-btn.open .menu-btn__burger::after {
        transform: rotate(-45deg);
    }
}

/* Achievements Section */
.achievements {
    background-color: var(--background-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.achievement-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.achievement-icon i {
    font-size: 30px;
    color: white;
}

.achievement-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.achievement-date {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 14px;
}

/* Responsive styles for achievements */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
} 