/* Imports */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Open+Sans:wght@300;400;600&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* Reset Styles */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    -webkit-text-size-adjust: none;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Base Styles */
body {
    padding-top: 4em;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.85em;
    color: #333;
    font-weight: 400;
    font-size: 16px;
    background: linear-gradient(135deg, #f0f4f8, #e6eef4);
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
    animation: none !important;
    transition: none !important;
}

/* Typography */
a {
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    color: #1e90ff;
    text-decoration: none;
}

a:hover {
    color: #00b7c2 !important;
}

b, strong {
    font-weight: 700;
    color: #1a2a44;
}

i, em {
    font-style: italic;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #1a2a44;
    margin: 0 0 0.8em 0;
    line-height: 1.3;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.7em;
}

h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.6em;
}

hr {
    border: 0;
    border-top: 2px solid #e0e4e8;
    margin: 2em 0;
}

p, ul, ol, dl, table {
    margin-bottom: 1.5em;
}

header {
    margin: 0 0 2em 0;
    text-align: center;
}

header > p {
    font-size: 1.25em;
    color: #6a8299;
    margin-top: -0.5em;
}

footer {
    margin: 2em 0 0 0;
    text-align: center;
}

/* Layout */
.container {
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
    padding: 0 30px;
}

.container.medium {
    max-width: 960px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -30px 0 0 -30px;
    justify-content: flex-start;
}

.row > * {
    padding: 30px 0 0 30px;
    flex: 0 0 33.33%;
    max-width: 33.33%;
    box-sizing: border-box;
}

.row > .col-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.row > .col-6-medium {
    flex: 0 0 50%;
    max-width: 50%;
}

.row > .col-12-small {
    flex: 0 0 100%;
    max-width: 100%;
}

.row > .col-8 {
    flex: 0 0 66.66%;
    max-width: 66.66%;
}

.row > .col-5-large {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}

.row > .col-7-large {
    flex: 0 0 58.33%;
    max-width: 58.33%;
}

.row > .col-12-medium {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Home Section */
#Home .row {
    align-items: center;
    padding: 3em 0;
}

#Home .col-4 {
    display: flex;
    justify-content: center;
}

#Home .col-8 {
    padding-left: 2.5em;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#Home header {
    margin: 0;
    text-align: left;
}

.social-icons {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.social-icons a {
    margin-right: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons img {
    max-height: 35px;
    width: auto;
}

/* Buttons */
.button {
    transition: all 0.3s ease-in-out;
    display: inline-block;
    background: linear-gradient(45deg, #1e90ff, #00b7c2);
    color: #fff !important;
    padding: 0.85em 1.75em;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0.5em 0.25em;
}

.button:hover {
    background: linear-gradient(45deg, #00b7c2, #1e90ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.button.large {
    font-size: 1.15em;
    padding: 1em 2em;
}

.button.scrolly {
    margin-top: 1em;
}

/* Images */
.image.fit {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 220px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.image.fit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image.featured {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5em;
}

.image.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Boxes */
.box {
    background: #fff;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2em;
    height: auto;
    display: flex;
    flex-direction: column;
}

.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.box.style1 {
    padding: 2em;
    text-align: center;
    height: auto;
    min-height: 280px;
}

.box.style1 .image.featured {
    margin: 0 0 1.5em 0;
    height: 120px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.box.style1:hover .image.featured img {
    transform: scale(1.05);
}

.box.style2 {
    padding: 2em;
    height: auto;
    min-height: 380px;
    text-align: center;
}

.box.style2 .image.featured {
    margin: 0 0 1.5em 0;
    height: 160px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.box.style2:hover .image.featured img {
    transform: scale(1.05);
}

.box.style2 h3 {
    font-size: 1.35em;
    margin-bottom: 0.75em;
    color: #1e90ff;
}

.box.style2 p {
    font-size: 0.95em;
}

/* Tags container */
.tags {
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.4em 1em;
    margin: 0.25em;
    background: linear-gradient(45deg, #1e90ff, #00b7c2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Wrappers */
.wrapper {
    padding: 6em 0;
    background-color: #fff;
    position: relative;
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
}

.wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(45deg, #1e90ff, #00b7c2);
}

.wrapper.style1 {
    background: #fff;
}

.wrapper.style2 {
    background: linear-gradient(135deg, #f5f8fa, #e8eef2);
}

.wrapper.style3 {
    background: #f8fafc;
}

.wrapper.style4 {
    background: linear-gradient(135deg, #2a3b57, #1a2a44);
    color: #d8e0e8;
}

.wrapper.style4 h1, .wrapper.style4 h2, .wrapper.style4 h3 {
    color: #fff;
}

/* Experience Container */
.experience-container {
    max-width: 960px;
    margin: 0 auto;
}

.experience-container ul {
    list-style: disc;
    padding-left: 2em;
}

.experience-container ul li {
    margin-bottom: 0.75em;
    line-height: 1.6;
}

.experience-container .box h3 {
    margin-bottom: 0.5em;
    color: #1e90ff;
}

.experience-container .box p {
    margin-bottom: 1em;
}

/* Education Container */
.education-container {
    max-width: 960px;
    margin: 0 auto;
}

.education-container .box {
    margin-bottom: 2em;
    padding: 2em;
}

.education-container .box h3 {
    font-size: 1.6em;
    color: #1e90ff;
    margin-bottom: 0.5em;
}

.education-container .box p {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 0.75em;
}

/* Navigation */
#nav {
    background: linear-gradient(45deg, #1a2a44, #2a3b57);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4em;
    line-height: 4em;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#nav ul {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#nav li {
    display: inline-block;
}

#nav a {
    color: #fff;
    padding: 0 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    font-size: 0.9em;
}

#nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #00b7c2 !important;
}

#nav a.active {
    background: #1e90ff;
    color: #fff !important;
}

/* Social Links */
ul.social {
    list-style: none;
    text-align: center;
    margin: 2em 0;
}

ul.social li {
    display: inline-block;
    margin: 0 0.75em;
}

ul.social li a {
    color: #1e90ff;
    font-size: 1.75em;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: inline-block;
}

ul.social li a:hover {
    color: #00b7c2;
    transform: scale(1.1) translateY(-3px);
}

/* Footer */
#copyright {
    color: #a8b8cc;
    font-size: 1em;
    text-align: center;
    padding: 2em 0;
    list-style: none;
}

#copyright li {
    display: inline-block;
    margin: 0 0.75em;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fadeIn.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Projects CTA */
.projects-cta {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.projects-cta .button {
    margin: 0.5em;
    min-width: 120px;
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .container {
        max-width: 960px;
    }
}

@media screen and (max-width: 980px) {
    .container {
        max-width: 100%;
    }
    
    .row > .col-4,
    .row > .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row > .col-6-medium {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .row > .col-5-large,
    .row > .col-7-large {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #Home .col-8 {
        padding-left: 0;
        text-align: center;
        margin-top: 2em;
    }
    
    #Home header {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .wrapper {
        padding: 4em 0;
    }
}

@media screen and (max-width: 736px) {
    body {
        padding-top: 4em;
        font-size: 14px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.75em;
    }
    
    h3 {
        font-size: 1.35em;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .row {
        margin: -20px 0 0 -20px;
    }
    
    .row > * {
        padding: 20px 0 0 20px;
    }
    
    .row > .col-6-medium {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #Home .row {
        flex-direction: column;
        padding: 2em 0;
    }
    
    .image.fit {
        max-width: 180px;
        height: 180px;
    }
    
    .box {
        padding: 1.5em;
    }
    
    .box.style1,
    .box.style2 {
        min-height: 0;
        height: auto;
    }
    
    .box.style1 .image.featured,
    .box.style2 .image.featured {
        height: auto;
        max-height: 200px;
    }
    
    .wrapper {
        padding: 3em 0;
        margin: 1em 0;
    }
    
    #nav {
        height: auto;
        line-height: normal;
    }
    
    #nav ul {
        flex-direction: column;
        padding: 1em 0;
    }
    
    #nav li {
        display: block;
        line-height: 3em;
    }
    
    #nav a {
        display: block;
    }
    
    .button {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5em 0;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .wrapper {
        padding: 2em 0;
    }
    
    .container {
        padding: 0 15px;
    }
}
