:root {
    --heading-color: #0A2540;
    --subheading-color: #3A506B;
    --body-text: #444444;
    --muted-text: #777777;
    --accent-color: #008080;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #eaeaea;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

.dark-mode {
    --heading-color: #e0e0e0;
    --subheading-color: #a8c0d6;
    --body-text: #cccccc;
    --muted-text: #888888;
    --accent-color: #00a0a0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--body-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    font-weight: 400;
}

/* Typography Scale */
h1, h2, .section-title {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

h3, h4 {
    color: var(--subheading-color);
    font-weight: 600;
}

p, li, .hero-description {
    color: var(--body-text);
    font-weight: 400;
}

.education-date, .experience-date, .certification-issuer, .muted-text {
    color: var(--muted-text);
}

a, .btn, .accent-text, .theme-toggle, .certification-link {
    color: var(--accent-color);
}

/* Layout & Sections */
section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card-bg);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--body-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--body-text);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Home Section */
#home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), var(--card-bg));
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    min-height: 60px;
    color: var(--subheading-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

/* Typing cursor */
.cursor {
    display: inline-block;
    margin-left: 5px;
    width: 2px;
    background: var(--accent-color);
    animation: blink 0.7s steps(2) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    width: 300px;
    border: 1px solid var(--border-color);
    margin: 0 auto;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s;
    object-fit: cover;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Education Section */
.education-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.education-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 300px;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    box-shadow: var(--shadow);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.education-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.education-date {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.education-degree {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.education-institution {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--subheading-color);
}

.education-details {
    margin-top: 0.8rem;
    display: none;
}

.education-card:hover .education-details {
    display: block;
}

.education-details li {
    margin-bottom: 0.3rem;
    list-style-type: none;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.education-details li::before {
    content: '▹';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Experience Section */
.experience-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.experience-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.experience-date {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.experience-role {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.experience-company {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--subheading-color);
}

.experience-description {
    margin-top: 1rem;
}

.experience-description li {
    margin-bottom: 0.5rem;
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.experience-description li::before {
    content: '▹';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.certification-link {
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.certification-link:hover {
    transform: translateX(5px);
}

.certification-link i {
    margin-left: 0.5rem;
}

/* Skills Section */
.skills-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.skills-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-box {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.skill-box:hover .skill-icon {
    transform: scale(1.2);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Color coding for different technologies */
.html5 { color: #e34f26; }
.css3 { color: #1572b6; }
.js { color: #f7df1e; }
.java { color: #007396; }
.python { color: #3776ab; }
.mysql { color: #4479a1; }
.mongodb { color: #47a248; }
.react { color: #61dafb; }
.git { color: #f05032; }

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.certification-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certification-image {
   
    height: 80px;
    width: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    position: relative;
    right: 65px;
   
}
.certification-image img {
    height: 250px;;
    width: 400px;
    object-fit: contain;
    transition: transform 0.5s;
   
}

.certification-card:hover .certification-image img {
    transform: scale(1.05);
}

.certification-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certification-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    min-height: 2.8rem;
}

.certification-issuer {
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.certification-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    flex-grow: 1;
}

.certification-link {
    margin-top: auto;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.certification-link:hover {
    transform: translateX(5px);
}

.certification-link i {
    margin-left: 0.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 128, 128, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 1rem;
    transition: var(--transition);
}

.project-links a:hover {
    transform: translateY(-2px);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-details li i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--subheading-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--body-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.submit-btn:hover {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--body-text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .education-container {
        flex-direction: column;
        align-items: center;
    }
    
    .education-card {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .education-card {
        height: auto;
        min-height: 200px;
    }
    
    .education-details {
        display: block;
    }
    
    .about-image {
        margin: 0 auto 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* Error message styling */
.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

