/* CSS Reset and General Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* Background class */
.Background {
    background-color: #f4f4f4;
    position: relative;
}

/* Heading 1 elements */
h1 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    margin: 30px 0;
    color: #1a1a2e;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Heading 1 hover effect */
h1:hover {
    filter: grayscale(5%);
    transform: scale(1.02);
    transition: transform 0.5s;
}

/* White text for hero section */
.white-text {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

/* Paragraph styling */
p {
    font-family: 'Georgia', serif;
    text-align: justify;
    letter-spacing: 0.5px;
    font-size: 18px;
    padding: 0 20px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* Center aligned text */
p.center {
    text-align: center;
}

/* Link styling */
a {
    color: #0f4c75;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a:hover {
    color: #e94560;
    text-decoration: underline;
}

/* Quote styling */
q {
    font-style: italic;
    display: block;
    margin: 20px 0;
}

/* Image styling */
img {
    filter: grayscale(75%);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* Navigation Bar */
.Navbar {
    overflow: hidden;
    background-color: #1a1a2e;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: moveNav 1.5s;
}

@keyframes moveNav {
    from {
        left: -100vw;
    }
    to {
        left: 0vw;
    }
}

.Navbar a {
    float: left;
    display: block;
    color: #fff;
    padding: 14px 20px;
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: moveNavText 2s;
}

@keyframes moveNavText {
    from {
        top: -100vw;
    }
    to {
        top: 0vw;
    }
}

.Navbar a:hover {
    background-color: #e94560;
    color: #fff;
}

.Navbar a.active {
    background-color: #0f4c75;
}

/* Video Background Container */
#Home {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

#Typing_Video {
    position: absolute;  /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

/* Hero Text Overlay */
.Video_Text {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(15, 76, 117, 0.6));  /* Reduced opacity from 0.95/0.9 to 0.7/0.6 */
    color: white;
    width: 100%;
    padding: 80px 20px;
    margin-top: 60px;
    margin-bottom: 0;  /* Changed from 50px to 0 */
    animation: fadeIn 2s;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Container */
.Row {
    max-width: 1200px;
    margin: 80px auto;  /* Increased from 60px */
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;  /* Changed from center to stretch */
    justify-content: center;
    padding: 0 20px;
    gap: 40px;  /* Increased from 20px */
}

/* Column Layouts */
.Column_1,
.Column_2 {
    flex: 1;
    min-width: 300px;
    max-width: 500px;  /* Reduced from 550px */
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Main content area after hero */
.content-wrapper {
    background-color: #f4f4f4;
    position: relative;
    z-index: 1;
}

.Column_1:hover,
.Column_2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.Column_2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add this right here - after the .Column_2 block */
.Column_2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Height for contact section */
.Column_tall {
    min-height: 450px;
}

/* Form Styling */
form {
    padding: 20px 0;
}

label {
    display: block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    margin-top: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type=text],
input[type=email],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
    border-color: #0f4c75;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
input[type=submit],
button[type=submit] {
    background: linear-gradient(135deg, #1a1a2e, #0f4c75);
    color: white;
    font-weight: bold;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

input[type=submit]:hover,
button[type=submit]:hover {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

/* GitHub Link Button Style */
.github-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a1a2e;
    color: white !important;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.github-link:hover {
    background-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e, #0f4c75);
    padding: 30px 20px;
    margin-top: 80px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer p {
    color: #fff;
    font-size: 14px;
    margin: 5px 0;
}

/* Section Anchors - Account for fixed navbar */
#About,
#GitHub,
#Contact {
    scroll-margin-top: 80px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .Row {
        flex-direction: column;
        margin: 40px auto;
    }
    
    .Column_1,
    .Column_2 {
        width: 100%;
        max-width: 100%;
        margin: 10px;
        padding: 30px 20px;
    }
    
    .Video_Text {
        padding: 60px 15px;
        margin-top: 70px;
    }
    
    .Navbar a {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    input[type=submit],
    button[type=submit] {
        width: 100%;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }
    
    .Navbar a {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .Video_Text {
        padding: 40px 10px;
    }
    
    p {
        font-size: 14px;
    }
}