Utkarshres32 commited on
Commit
2a47d90
·
1 Parent(s): a02cb2d

Fix layout alignment and overflow issues

Browse files
Files changed (1) hide show
  1. frontend/src/App.css +9 -2
frontend/src/App.css CHANGED
@@ -44,6 +44,13 @@ body {
44
  color: var(--text-primary);
45
  -webkit-font-smoothing: antialiased;
46
  -moz-osx-font-smoothing: grayscale;
 
 
 
 
 
 
 
47
  }
48
 
49
  * { box-sizing: border-box; }
@@ -74,7 +81,7 @@ h1, h2, h3, h4, p { margin: 0; }
74
  /* LANDING PAGE */
75
  /* ========================================================================= */
76
 
77
- .landing-container { background: #FFFFFF; display: flex; flex-direction: column; }
78
 
79
  /* Nav */
80
  .nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 6%; position: absolute; width: 100%; top: 0; z-index: 100; }
@@ -91,7 +98,7 @@ h1, h2, h3, h4, p { margin: 0; }
91
  /* Hero */
92
  .hero-section { padding: 160px 6% 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; position: relative; overflow: hidden; }
93
  .hero-badge { display: inline-block; padding: 6px 16px; background: var(--accent-light); color: var(--accent); border-radius: var(--radius-full); font-weight: 600; font-size: 0.85rem; border: 1px solid rgba(15,118,110,0.1); }
94
- .hero-title { font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 900px; color: var(--text-primary); z-index: 10; }
95
  .hero-description { font-size: 1.25rem; line-height: 1.6; color: var(--text-secondary); max-width: 650px; z-index: 10; }
96
 
97
  .hero-buttons { display: flex; gap: 16px; z-index: 10; }
 
44
  color: var(--text-primary);
45
  -webkit-font-smoothing: antialiased;
46
  -moz-osx-font-smoothing: grayscale;
47
+ width: 100%;
48
+ overflow-x: hidden;
49
+ }
50
+
51
+ html {
52
+ overflow-x: hidden;
53
+ width: 100%;
54
  }
55
 
56
  * { box-sizing: border-box; }
 
81
  /* LANDING PAGE */
82
  /* ========================================================================= */
83
 
84
+ .landing-container { background: #FFFFFF; display: flex; flex-direction: column; width: 100%; min-height: 100vh; position: relative; }
85
 
86
  /* Nav */
87
  .nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 6%; position: absolute; width: 100%; top: 0; z-index: 100; }
 
98
  /* Hero */
99
  .hero-section { padding: 160px 6% 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; position: relative; overflow: hidden; }
100
  .hero-badge { display: inline-block; padding: 6px 16px; background: var(--accent-light); color: var(--accent); border-radius: var(--radius-full); font-weight: 600; font-size: 0.85rem; border: 1px solid rgba(15,118,110,0.1); }
101
+ .hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 900px; color: var(--text-primary); z-index: 10; padding: 0 20px; }
102
  .hero-description { font-size: 1.25rem; line-height: 1.6; color: var(--text-secondary); max-width: 650px; z-index: 10; }
103
 
104
  .hero-buttons { display: flex; gap: 16px; z-index: 10; }