
/* --- 1. Variables (Modern Tech Palette) --- */
:root {
    /* This template uses a professional "Modern Tech" color scheme. */
    --primary-color: #1A2A4C;   /* Midnight Blue */
    --secondary-color: #3D5A80; /* Slate Blue */
    --accent-color: #29B6F6;    /* Vivid Sky Blue */

    /* --- Shared Variables (These usually don't need to change) --- */
    --light-bg-color: #F8F9FA;
    --white-color: #ffffff;
    --dark-text-color: #343A40;
    --light-text-color: #6c757d;
    --card-bg-color: #ffffff;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- 2. Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 3. Header --- */
header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: clamp(45px, 8vw, 70px) 0;
    text-align: center;
}

header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
}

header p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- 3.5 Social Icons --- */
/* --- 3.5 Social Icons --- */
.social-links a {
    color: var(--white-color);
    font-size: 1.6rem;
    margin: 0 15px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

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

/* --- 4. Navigation --- */
nav {
    background-color: rgba(26, 42, 76, 0.95); /* Adjusted for new primary color */
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--secondary-color);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 0;
    gap: 5px;
}

nav ul li a {
    color: var(--white-color);
    font-weight: 400;
    padding: 15px 25px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

nav ul li a:hover::after {
    width: 50%;
}

/* --- 5. Sections --- */
.section {
    padding: 100px 0;
}

.section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 70px;
    position: relative;
    color: var(--primary-color);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-color);
}

/* --- 5.1 About Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.profile-photo {
    width: clamp(180px, 28vw, 280px);
    height: clamp(180px, 28vw, 280px);
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.about-text {
    flex: 1;
}


.about-text p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 15px;
    line-height: 1.9;
}

/* --- 5.5 Project Cards --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(20px, 3vw, 40px);
}

.project-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    transition: transform .4s ease, box-shadow .4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width:100%;
    aspect-ratio:16/9;
    height:auto;
    object-fit:cover;
    display:block;
}

.project-card-content {
    padding: clamp(18px,3vw,30px);
    flex-grow:1;
    display:flex;
    flex-direction:column;
}

.project-card-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem,2vw,1.8rem);
    color: var(--primary-color);
    margin-bottom:15px;
    line-height:1.35;
}

.project-card-content p {
    color: var(--light-text-color);
    margin-bottom:25px;
    flex-grow:1;
    line-height:1.8;
    font-size:clamp(.95rem,1.8vw,1rem);
}

.project-buttons {
    display:flex;
    gap:12px;
    margin-top:auto;
}

.btn {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    padding:12px 18px;
    min-height:48px;
    text-align:center;
    flex:1;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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


/* --- 6. Tabular Skills Section --- */
#skills .container {
    max-width: 1100px;
}

.skills-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 35px);
    margin-top: 50px;
    background-color: var(--card-bg-color);
    padding: clamp(25px, 4vw, 40px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.skill-column {
    padding: 0 clamp(10px, 2vw, 20px);
}

.skill-column:not(:last-child) {
    border-right: 1px solid #e9ecef;
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.skill-header i {
    font-size: clamp(1.6rem, 2vw, 2rem);
    color: var(--accent-color);
    margin-right: 15px;
    width: 40px;
}

.skill-header h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--primary-color);
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    padding: 12px 0;
    font-size: clamp(.95rem,1.5vw,1.05rem);
    color: var(--dark-text-color);
    border-bottom:1px solid #f1f3f5;
    position:relative;
    padding-left:25px;
}

.skill-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

/* --- 7. Contact Form --- */
#contact .container {
    max-width: 800px;
    width: 100%;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg-color);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}
.contact-form p {
    margin-bottom: 30px;
    font-size: clamp(1rem, 2vw, 1.05rem);
    line-height: 1.8;
    color: var(--light-text-color);
}

.form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: clamp(.95rem, 1.5vw, 1rem);
    color: var(--dark-text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.25); /* Adjusted for new accent color */
}

.contact-form button.btn {
    width:100%;
    min-height:50px;
    padding:15px;
    font-size:1.05rem;
    font-weight:700;
    border:none;
    cursor:pointer;
}

/* --- 8. Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: clamp(25px, 4vw, 40px) 0;
    margin-top: clamp(50px, 6vw, 80px);
}

footer p {
    opacity: 0.7;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    padding: 0 15px;
}

/* --- 9. Responsive Design --- */
@media (max-width: 992px) {
    /* Skills */

    .skills-table{
        grid-template-columns:repeat(2,1fr);
        gap:30px;
    }

    .skill-column{
        padding:0 15px;
    }

    .skill-column:nth-child(2){
        border-right:none;
    }

    .skill-column:nth-child(3){
        grid-column:1 / -1;
        border-top:1px solid #e9ecef;
        padding-top:30px;
    }
    
     /* Navigation */
    nav ul li a {
        padding: 14px 18px;
    }
    /* About */
    .about-content {
        gap: 40px;
    }
    /* Projects */

    .projects-grid{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

    .project-card-content{
        padding:22px;
    }

    .project-buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }
    /* Contact */

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 50px 20px;
    }
    header h1 {
        line-height: 1.2;
    }
    header p {
        margin-bottom: 25px;
    }
    
    /* About */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-text {
        width: 100%;
    }

        .about-text p {
    text-align: center;
    }

    #projects .container {
        padding: 0 5px; 
    }

   /* Projects */

    #projects .container{
        padding:0 15px;
    }

    .projects-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    .project-card img{
        aspect-ratio:16/9;
    }

    .project-card-content{
        padding:20px;
    }

        .project-buttons{
    flex-direction:column;
        gap:10px;
    }

    .btn{
        width:100%;
    }

   /* Skills */

    .skills-table{
        grid-template-columns:1fr;
        padding:20px;
        gap:35px;
    }

    .skill-column{
        padding:0;
    }

    .skill-column:not(:last-child){
        border-right:none;
        border-bottom:1px solid #e9ecef;
        padding-bottom:30px;
    }

    .skill-column:nth-child(3){
        border-top:none;
        padding-top:0;
    }

    .skill-header{
        justify-content:center;
    }

    .skill-list li{
        font-size:1rem;
    }
    /* Navigation */
    nav ul {
    gap: 2px;
    }

    nav ul li a {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
    /* Contact */

    #contact .container {
        padding: 0 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form p {
        text-align: center;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .contact-form button.btn {
        width: 100%;
    }
    /* Footer */

    footer {
        padding: 25px 15px;
    }

    footer p {
        text-align: center;
    }
}
