/* Base Styles and Variables */
:root {
    --primary-color: #0050ff;
    --primary-dark: #0040cc;
    --primary-light: #4d85ff;
    --secondary-color: #f8f9fa;
    --accent-color: #ff3366;
    --accent-dark: #e61a4d;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --background-color: #ffffff;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --section-spacing: 120px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(0, 80, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 80, 255, 0.4);
}

.primary-btn:active {
    transform: translateY(1px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 80, 255, 0.1);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 80, 255, 0.2);
}

.secondary-btn:active {
    transform: translateY(1px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 6px 2px;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 80, 255, 0.06), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.05), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 80, 255, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 30%;
    width: auto;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: translateY(-10px) rotate(2deg);
}

/* About Section */
.about {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    /* Remove opacity:0 and transform to make visible by default */
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 80, 255, 0.08), transparent 70%);
    z-index: 0;
    border-radius: 50%;

}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.personal-info {
    margin: 40px 0;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.info-item {
    margin-bottom: 18px;
    display: flex;
}

.info-label {
    font-weight: 600;
    min-width: 120px;
    color: var(--text-color);
}

.info-value {
    color: var(--text-light);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 85%;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-image::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
 
    border-radius: var(--border-radius);
    right: 15%;
    top: 15%;
    z-index: 0;
    opacity: 0.2;
}

/* Skills Section */
.skills {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    /* Remove opacity:0 and transform to make visible by default */
}

.skills::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.06), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.skills-container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.skills-column {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skills-column:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skills-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.skills-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.skills-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.skills-column ul {
    list-style-type: none;
    padding-left: 0;
}

.skills-column li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 28px;
    position: relative;
}

.skills-column li:last-child {
    margin-bottom: 0;
}

.skills-column li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 80, 255, 0.1);
}

.skills-column strong {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 6px;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Remove opacity:0 and transform to make visible by default */
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 80, 255, 0.08), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.portfolio-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
}

.portfolio-thumbnail img {
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.portfolio-thumbnail img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.portfolio-text h3 {
    font-size: 2rem;
    margin-top: 20px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.portfolio-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.portfolio-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
    /* Remove opacity:0 and transform to make visible by default */
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 80, 255, 0.08), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: rgba(0, 80, 255, 0.03);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    background-color: rgba(0, 80, 255, 0.06);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    background-color: rgba(0, 80, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 80, 255, 0.1);
    background-color: #fff;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #cbd5e0;
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

/* Footer */
.footer {
    padding: 50px 0 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    font-size: 1.5rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add fade-in animations - THIS IS THE FIX - REMOVE opacity:0 and transform here */
.about, .projects, .skills, .contact, .portfolio-section {
    /* opacity: 0;
    transform: translateY(30px); */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --section-spacing: 100px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .about-image::after {
        display: none;
    }
    
    .portfolio-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }
    
    html {
        font-size: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 60%;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 1;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 70px;
    }
    
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        max-width: 70%;
    }
    
    .skills-column {
        padding: 25px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-info, .contact-form {
        padding: 25px;
    }
}

/* Enhance existing sections */
/* Add smooth hover effect to hero buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* Add scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Fix broken book container styles */
.book-container {
    position: relative;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    perspective: 1500px;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform-origin: left center;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
}

.page-content {
    padding: 40px;
    text-align: center;
}

.book-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}